Uses of Class
net.i2p.router.transport.udp.PeerState2
Package
Description
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
-
Uses of PeerState2 in net.i2p.router.transport.udp
Modifier and TypeMethodDescriptionOutboundEstablishState2.confirmedPacketsSent
(UDPPacket[] packets) note that we just sent the SessionConfirmed packets and save them for retransmissionPeerTestState.getAlice()
SSU2 onlyInboundEstablishState2.getPeerState()
OutboundEstablishState2.getPeerState()
(package private) PeerState2
UDPTransport.getPeerState
(long rcvConnID) Get the state by SSU2 connection IDInboundEstablishState2.receiveSessionConfirmed
(UDPPacket packet) Receive the last messages in the handshake, and create the PeerState.Modifier and TypeMethodDescriptionPacketBuilder2.buildACK
(PeerState2 peer) Build the ack packet.PacketBuilder2.buildPacket
(List<PacketBuilder.Fragment> fragments, List<SSU2Payload.Block> otherBlocks, PeerState2 peer) PacketBuilder2.buildPacket
(List<PacketBuilder.Fragment> fragments, PeerState2 peer) PacketBuilder2.buildPacket
(OutboundMessageState state, int fragment, PeerState2 peer) This builds a data packet (PAYLOAD_TYPE_DATA).PacketBuilder2.buildPeerTestFromAlice
(byte[] signedData, PeerState2 bob) Build a packet as Alice, to Bob to begin a peer test.PacketBuilder2.buildPeerTestToAlice
(int code, Hash charlieHash, byte[] signedData, PeerState2 alice) Build a packet as Bob to Alice, with the response from Charlie, or a rejection by Bob.PacketBuilder2.buildPeerTestToBob
(int code, byte[] signedData, PeerState2 bob) Build a packet as Charlie to Bob verifying that we will help test Alice.PacketBuilder2.buildPeerTestToCharlie
(Hash aliceHash, byte[] signedData, PeerState2 charlie) Build a packet as Bob to Charlie to help test Alice.PacketBuilder2.buildPing
(PeerState2 peer) A DATA packet with padding only.(package private) UDPPacket
PacketBuilder2.buildRelayIntro
(byte[] signedData, PeerState2 charlie) From Bob to Charlie.(package private) UDPPacket
PacketBuilder2.buildRelayRequest
(byte[] signedData, PeerState2 bob) From Alice to Bob.(package private) UDPPacket
PacketBuilder2.buildRelayResponse
(byte[] signedData, PeerState2 state) From Charlie to Bob or Bob to Alice.PacketBuilder2.buildSessionDestroyPacket
(int reason, PeerState2 peer) Build a data packet with a termination block.(package private) void
UDPTransport.changePeerAddress
(PeerState2 peer, RemoteHostId newAddress) Remove and add to peersByRemoteHost map(package private) void
IntroductionManager.receiveRelayIntro
(PeerState2 bob, Hash alice, byte[] data) We are Charlie and we got this from Bob.(package private) void
IntroductionManager.receiveRelayRequest
(PeerState2 alice, byte[] data) We are Bob and we got this from Alice.(package private) void
EstablishmentManager.receiveRelayResponse
(PeerState2 bob, long nonce, int code, byte[] data) We are Alice, we sent a RelayRequest to Bob and got a RelayResponse back.(package private) void
IntroductionManager.receiveRelayResponse
(PeerState2 peer, int status, byte[] data) We are Bob and we got this from Charlie, OR we are Alice and we got this from Bob.void
PeerTestManager.receiveTest
(RemoteHostId from, PeerState2 fromPeer, int msg, int status, Hash h, byte[] data) Entry point for all in-session incoming packets.void
PeerTestState.setAlice
(PeerState2 alice) SSU2 only