Uses of Class
net.i2p.router.transport.udp.RemoteHostId
Packages that use RemoteHostId
Package
Description
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
-
Uses of RemoteHostId in net.i2p.router.transport.udp
Fields in net.i2p.router.transport.udp declared as RemoteHostIdModifier and TypeFieldDescriptionprotected final RemoteHostIdInboundEstablishState._remoteHostIdprotected RemoteHostIdOutboundEstablishState._remoteHostIdprotected RemoteHostIdPeerState._remoteHostIdcached RemoteHostId, used to find the peerState by remote infoMethods in net.i2p.router.transport.udp that return RemoteHostIdModifier and TypeMethodDescription(package private) RemoteHostIdOutboundEstablishState.getClaimedAddress()This will never be a hash-based address.(package private) RemoteHostIdUDPPacket.getRemoteHost()(package private) RemoteHostIdInboundEstablishState.getRemoteHostId()RemoteHostId, uniquely identifies an attempt(package private) RemoteHostIdOutboundEstablishState.getRemoteHostId()This should be what the state is currently indexed by in the _outboundStates table.(package private) RemoteHostIdPeerState.getRemoteHostId()Methods in net.i2p.router.transport.udp with parameters of type RemoteHostIdModifier and TypeMethodDescriptionvoidEstablishmentManager.addOutboundToken(RemoteHostId peer, long token, long expires) Remember a token that can be used later to connect to the peer(package private) UDPPacketPacketBuilder.buildRelayIntro(RemoteHostId alice, PeerState charlie, UDPPacketReader.RelayRequestReader request) (package private) UDPPacketPacketBuilder.buildRelayResponse(RemoteHostId alice, PeerState charlie, long nonce, SessionKey cipherKey, SessionKey macKey) (package private) voidPeerState2.changeAddress(RemoteHostId id) Caller should sync; UDPTransport must remove and add to peersByRemoteHost map(package private) voidUDPTransport.changePeerAddress(PeerState2 peer, RemoteHostId newAddress) Remove and add to peersByRemoteHost map(package private) InboundEstablishStateEstablishmentManager.getInboundState(RemoteHostId from) Grab the active establishing stateEstablishmentManager.getInboundToken(RemoteHostId peer) Get a token that can be used later for the peer to connect to usEstablishmentManager.getInboundToken(RemoteHostId peer, long expiration) Get a token that can be used later for the peer to connect to us(package private) OutboundEstablishStateEstablishmentManager.getOutboundState(RemoteHostId from) Grab the active establishing statelongEstablishmentManager.getOutboundToken(RemoteHostId peer) Get a token to connect to the peer(package private) PeerStateUDPTransport.getPeerState(RemoteHostId hostInfo) get the state for the peer at the given remote host/port, or null if no state existsUDPTransport.getPeerStatesByIP(RemoteHostId hostInfo) Get the states for all peers at the given remote host, ignoring port.voidInboundEstablishState2.gotPathChallenge(RemoteHostId from, byte[] data) voidOutboundEstablishState2.gotPathChallenge(RemoteHostId from, byte[] data) voidPeerState2.gotPathChallenge(RemoteHostId from, byte[] data) voidSSU2Payload.PayloadCallback.gotPathChallenge(RemoteHostId from, byte[] data) voidInboundEstablishState2.gotPathResponse(RemoteHostId from, byte[] data) voidOutboundEstablishState2.gotPathResponse(RemoteHostId from, byte[] data) voidPeerState2.gotPathResponse(RemoteHostId from, byte[] data) voidSSU2Payload.PayloadCallback.gotPathResponse(RemoteHostId from, byte[] data) booleanEstablishmentManager.isInboundTokenValid(RemoteHostId peer, long token) Is the token from this peer valid?(package private) booleanUDPTransport.isInDropList(RemoteHostId peer) (package private) PeerStateUDPTransport.pickTestPeer(PeerTestState.Role peerRole, int version, boolean isIPv6, RemoteHostId dontInclude) Pick a Bob (if we are Alice) or a Charlie (if we are Bob).static intSSU2Payload.processPayload(I2PAppContext ctx, SSU2Payload.PayloadCallback cb, byte[] payload, int off, int length, boolean isHandshake, RemoteHostId from) Incoming payload.(package private) voidEstablishmentManager.receiveHolePunch(RemoteHostId id, UDPPacket packet) Called from PacketHandler.(package private) voidIntroductionManager.receiveHolePunch(RemoteHostId charlie, byte[] data) We are Alice and we got this from Charlie.(package private) voidPeerState2.receivePacket(RemoteHostId from, UDPPacket packet) From different than expected source IP/port(package private) voidIntroductionManager.receiveRelayIntro(RemoteHostId bob, UDPPacketReader reader) We are Charlie and we got this from Bob.(package private) voidIntroductionManager.receiveRelayRequest(RemoteHostId alice, UDPPacketReader reader) We are Bob and we got this from Alice.(package private) voidEstablishmentManager.receiveRelayResponse(RemoteHostId bob, UDPPacketReader reader) We are Alice, we sent a RelayRequest to Bob and got a response back.(package private) voidEstablishmentManager.receiveSessionConfirmed(RemoteHostId from, InboundEstablishState state, UDPPacketReader reader) got a SessionConfirmed (should only happen as part of an inbound establishment) SSU 1 only.(package private) voidEstablishmentManager.receiveSessionCreated(RemoteHostId from, OutboundEstablishState state, UDPPacketReader reader) Got a SessionCreated (in response to our outbound SessionRequest) SSU 1 only.(package private) voidEstablishmentManager.receiveSessionDestroy(RemoteHostId from) Got a SessionDestroy - maybe during an inbound establish? TODO - PacketHandler won't look up inbound establishes As this packet was essentially unauthenticated (i.e.(package private) voidEstablishmentManager.receiveSessionDestroy(RemoteHostId from, OutboundEstablishState state) Got a SessionDestroy during outbound establish SSU 1 or 2(package private) voidEstablishmentManager.receiveSessionDestroy(RemoteHostId from, PeerState state) Got a SessionDestroy on an established conn SSU 1 or 2(package private) voidEstablishmentManager.receiveSessionOrTokenRequest(RemoteHostId from, InboundEstablishState2 state, UDPPacket packet) Got a SessionRequest OR a TokenRequest (initiates an inbound establishment) SSU 2 only.(package private) voidEstablishmentManager.receiveSessionRequest(RemoteHostId from, InboundEstablishState state, UDPPacketReader reader) Got a SessionRequest (initiates an inbound establishment) SSU 1 only.voidPeerTestManager.receiveTest(RemoteHostId from, PeerState2 fromPeer, int msg, int status, Hash h, byte[] data) Entry point for all in-session incoming packets.voidPeerTestManager.receiveTest(RemoteHostId from, PeerState fromPeer, boolean inSession, UDPPacketReader reader) Entry point for all incoming packets.voidPeerTestManager.receiveTest(RemoteHostId from, UDPPacket packet) Entry point for all out-of-session packets, messages 5-7 only.Constructors in net.i2p.router.transport.udp with parameters of type RemoteHostIdModifierConstructorDescriptionOutboundEstablishState(RouterContext ctx, RemoteHostId claimedAddress, RemoteHostId remoteHostId, RouterIdentity remotePeer, boolean allowExtendedOptions, boolean needIntroduction, SessionKey introKey, UDPAddress addr, DHSessionKeyBuilder.Factory dh) protectedOutboundEstablishState(RouterContext ctx, RemoteHostId claimedAddress, RemoteHostId remoteHostId, RouterIdentity remotePeer, boolean needIntroduction, SessionKey introKey, UDPAddress addr) For SSU2OutboundEstablishState2(RouterContext ctx, UDPTransport transport, RemoteHostId claimedAddress, RemoteHostId remoteHostId, RouterIdentity remotePeer, boolean needIntroduction, SessionKey introKey, RouterAddress ra, UDPAddress addr) Prepare to start a new handshake with the given peer.