Uses of Class
net.i2p.router.transport.udp.PeerState
| Package | Description |
|---|---|
| net.i2p.router.transport.udp |
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
|
| net.i2p.router.web.helpers |
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
Methods in net.i2p.router.transport.udp that return PeerState Modifier and Type Method Description PeerStateOutboundMessageState. getPeer()(package private) PeerStateUDPTransport. getPeerState(Hash remotePeer)get the state for the peer with the given ident, or null if no state exists(package private) PeerStateUDPTransport. getPeerState(RemoteHostId hostInfo)get the state for the peer at the given remote host/port, or null if no state exists(package private) PeerStateUDPTransport. pickTestPeer(PeerTestState.Role peerRole, boolean isIPv6, RemoteHostId dontInclude)Pick a Bob (if we are Alice) or a Charlie (if we are Bob).(package private) PeerStateEstablishmentManager. receiveData(OutboundEstablishState state)A data packet arrived on an outbound connection being established, which means its complete (yay!).Methods in net.i2p.router.transport.udp that return types with arguments of type PeerState Modifier and Type Method Description Collection<PeerState>UDPTransport. getPeers()For /peers UI only.(package private) List<PeerState>UDPTransport. getPeerStatesByIP(RemoteHostId hostInfo)Get the states for all peers at the given remote host, ignoring port.Methods in net.i2p.router.transport.udp with parameters of type PeerState Modifier and Type Method Description voidACKSender. ackPeer(PeerState peer)Add to the queue.voidIntroductionManager. add(PeerState peer)voidOutboundMessageFragments. add(List<OutboundMessageState> states, PeerState peer)Short circuit the OutNetMessage, letting us send multiple messages reliably and efficiently.voidOutboundMessageFragments. add(OutboundMessageState state, PeerState peer)Short circuit the OutNetMessage, letting us send the establish complete message reliably.voidOutboundMessageFragments. add(PeerState peer, int size)Add the peer to the list of peers wanting to transmit something.(package private) booleanUDPTransport. 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 knownUDPPacketPacketBuilder. buildACK(PeerState peer, List<ACKBitfield> ackBitfields)Build the ack packet.UDPPacketPacketBuilder. buildPacket(List<PacketBuilder.Fragment> fragments, PeerState peer, Collection<Long> ackIdsRemaining, int newAckCount, List<ACKBitfield> partialACKsRemaining)UDPPacketPacketBuilder. buildPacket(OutboundMessageState state, int fragment, PeerState peer, Collection<Long> ackIdsRemaining, int newAckCount, List<ACKBitfield> partialACKsRemaining)This builds a data packet (PAYLOAD_TYPE_DATA).UDPPacketPacketBuilder. buildPing(PeerState peer)An ACK packet with no acks.(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)UDPPacketPacketBuilder. buildSessionDestroyPacket(PeerState peer)Build a destroy packet, which contains a header but no body.(package private) voidUDPTransport. changePeerPort(PeerState peer, int newPort)Remove and add to peersByRemoteHost map(package private) voidOutboundMessageFragments. dropPeer(PeerState peer)(package private) voidUDPTransport. dropPeer(PeerState peer, boolean shouldBanlist, String why)This does not send a session destroy, caller must do that if desired.static intPacketBuilder. 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.(package private) voidPeerState. loadFrom(PeerState oldPeer)Transfer the basic activity/state from the old peer to the current peervoidInboundMessageFragments. receiveData(PeerState from, UDPPacketReader.DataReader data)Pull the fragments and ACKs out of the authenticated data packet(package private) voidEstablishmentManager. receiveSessionDestroy(RemoteHostId from, PeerState state)Got a SessionDestroy on an established connvoidIntroductionManager. remove(PeerState peer)(package private) voidUDPTransport. send(List<I2NPMessage> msgs, PeerState peer)"injected" messages from the EstablishmentManager.(package private) voidUDPTransport. 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) voidUDPTransport. send(I2NPMessage msg, PeerState peer)"injected" message from the EstablishmentManager.(package private) voidUDPTransport. sendDestroy(PeerState peer)Send a session destroy message, bypassing OMF and PacketPusher.Constructors in net.i2p.router.transport.udp with parameters of type PeerState Constructor Description OutboundMessageState(I2PAppContext context, I2NPMessage msg, PeerState peer)"injected" message from the establisher.OutboundMessageState(I2PAppContext context, OutNetMessage m, PeerState peer)Normal constructor.SimpleBandwidthEstimator(I2PAppContext ctx, PeerState state) -
Uses of PeerState in net.i2p.router.web.helpers
Methods in net.i2p.router.web.helpers that return types with arguments of type PeerState Modifier and Type Method Description (package private) static Comparator<PeerState>UDPSorters. getComparator(int sortFlags)Methods in net.i2p.router.web.helpers with parameters of type PeerState Modifier and Type Method Description intUDPSorters.CwndComparator. compare(PeerState l, PeerState r)intUDPSorters.DupComparator. compare(PeerState l, PeerState r)intUDPSorters.IdleInComparator. compare(PeerState l, PeerState r)intUDPSorters.IdleOutComparator. compare(PeerState l, PeerState r)intUDPSorters.MTUComparator. compare(PeerState l, PeerState r)intUDPSorters.PeerComparator. compare(PeerState l, PeerState r)intUDPSorters.RateInComparator. compare(PeerState l, PeerState r)intUDPSorters.RateOutComparator. compare(PeerState l, PeerState r)intUDPSorters.RecvCountComparator. compare(PeerState l, PeerState r)intUDPSorters.ResendComparator. compare(PeerState l, PeerState r)intUDPSorters.RTOComparator. compare(PeerState l, PeerState r)intUDPSorters.RTTComparator. compare(PeerState l, PeerState r)intUDPSorters.SendCountComparator. compare(PeerState l, PeerState r)intUDPSorters.SkewComparator. compare(PeerState l, PeerState r)intUDPSorters.SsthreshComparator. compare(PeerState l, PeerState r)intUDPSorters.UptimeComparator. compare(PeerState l, PeerState r)