Uses of Class
net.i2p.router.transport.udp.PeerState
Package
Description
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
Helpers and handlers for the router console user interface,
with these classes supporting the webapp in routerconsole.war.
-
Uses of PeerState in net.i2p.router.transport.udp
Modifier and TypeClassDescriptionclass
Contain all of the state about a UDP connection to a peer.Modifier and TypeMethodDescriptionPeerTestState.getBob()
OutboundMessageState.getPeer()
(package private) PeerState
UDPTransport.getPeerState
(Hash remotePeer) get the state for the peer with the given ident, or null if no state exists(package private) PeerState
UDPTransport.getPeerState
(RemoteHostId hostInfo) get the state for the peer at the given remote host/port, or null if no state exists(package private) PeerState
UDPTransport.pickTestPeer
(PeerTestState.Role peerRole, int version, boolean isIPv6, RemoteHostId dontInclude) Pick a Bob (if we are Alice) or a Charlie (if we are Bob).(package private) PeerState
EstablishmentManager.receiveData
(OutboundEstablishState state) A data packet arrived on an outbound connection being established, which means its complete (yay!).Modifier and TypeMethodDescriptionUDPTransport.getPeers()
For /peers UI only.UDPTransport.getPeerStatesByIP
(RemoteHostId hostInfo) Get the states for all peers at the given remote host, ignoring port.Modifier and TypeMethodDescriptionvoid
void
OutboundMessageFragments.add
(List<OutboundMessageState> states, PeerState peer) Short circuit the OutNetMessage, letting us send multiple messages reliably and efficiently.void
OutboundMessageFragments.add
(OutboundMessageState state, PeerState peer) Short circuit the OutNetMessage, letting us send the establish complete message reliably.void
Add the peer to the list of peers wanting to transmit something.(package private) boolean
UDPTransport.addRemotePeerState
(PeerState peer) add the peer info, returning true if it went in properly, false if it was rejected (causes include peer ident already connected, or no remote host info knownPacketBuilder.buildACK
(PeerState peer, List<ACKBitfield> ackBitfields) Build the ack packet.PacketBuilder.buildPacket
(List<PacketBuilder.Fragment> fragments, PeerState peer, Collection<Long> ackIdsRemaining, int newAckCount, List<ACKBitfield> partialACKsRemaining) PacketBuilder.buildPacket
(OutboundMessageState state, int fragment, PeerState peer, Collection<Long> ackIdsRemaining, int newAckCount, List<ACKBitfield> partialACKsRemaining) This builds a data packet (PAYLOAD_TYPE_DATA).An ACK packet with no acks.(package private) UDPPacket
PacketBuilder.buildRelayIntro
(RemoteHostId alice, PeerState charlie, UDPPacketReader.RelayRequestReader request) (package private) UDPPacket
PacketBuilder.buildRelayResponse
(RemoteHostId alice, PeerState charlie, long nonce, SessionKey cipherKey, SessionKey macKey) PacketBuilder.buildSessionDestroyPacket
(PeerState peer) Build a destroy packet, which contains a header but no body.(package private) void
UDPTransport.changePeerPort
(PeerState peer, int newPort) Remove and add to peersByRemoteHost map(package private) void
(package private) void
This does not send a session destroy, caller must do that if desired.static int
PacketBuilder.getMaxAdditionalFragmentSize
(PeerState peer, int numFragments, int curDataSize) Will a packet to 'peer' that already has 'numFragments' fragments totalling 'curDataSize' bytes fit another fragment of size 'newFragSize' ?? This doesn't leave anything for acks.static int
PacketBuilder2.getMaxAdditionalFragmentSize
(PeerState peer, int numFragments, int curDataSize) Will a packet to 'peer' that already has 'numFragments' fragments totalling 'curDataSize' bytes fit another fragment? This includes the 3 byte block overhead, but NOT the 5 byte followon fragment overhead.(package private) void
Transfer the basic activity/state from the old peer to the current peer SSU 1 or 2.void
InboundMessageFragments.receiveData
(PeerState from, UDPPacketReader.DataReader data) Pull the fragments and ACKs out of the authenticated data packet SSU 1 only.(package private) void
EstablishmentManager.receiveSessionDestroy
(RemoteHostId from, PeerState state) Got a SessionDestroy on an established conn SSU 1 or 2void
PeerTestManager.receiveTest
(RemoteHostId from, PeerState fromPeer, boolean inSession, UDPPacketReader reader) Entry point for all incoming packets.void
void
The next few methods are for when we are Alice(package private) void
UDPTransport.send
(List<I2NPMessage> msgs, PeerState peer) "injected" messages from the EstablishmentManager.(package private) void
UDPTransport.send
(I2NPMessage msg, List<OutNetMessage> msgs, PeerState peer) "injected" message from the EstablishmentManager, plus pending messages to send, so the messages may be bundled efficiently.(package private) void
UDPTransport.send
(I2NPMessage msg, PeerState peer) "injected" message from the EstablishmentManager.(package private) void
UDPTransport.sendDestroy
(PeerState peer, int reasonCode) Send a session destroy message, bypassing OMF and PacketPusher.ModifierConstructorDescriptionOutboundMessageState
(I2PAppContext context, I2NPMessage msg, PeerState peer) "injected" message from the establisher.OutboundMessageState
(I2PAppContext context, OutNetMessage m, PeerState peer) Normal constructor.PeerTestState
(PeerTestState.Role role, PeerState bob, boolean isIPv6, long nonce, long now) (package private)
SimpleBandwidthEstimator
(I2PAppContext ctx, PeerState state) -
Uses of PeerState in net.i2p.router.web.helpers
Modifier and TypeMethodDescription(package private) static Comparator<PeerState>
UDPSorters.getComparator
(int sortFlags) Modifier and TypeMethodDescriptionint
int
int
int
int
int
int
int
int
int
int
int
int
int
int
int