Uses of Class
net.i2p.router.transport.udp.PeerState2
Packages that use 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
Methods in net.i2p.router.transport.udp that return PeerState2Modifier 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) PeerState2UDPTransport.getPeerState(long rcvConnID) Get the state by SSU2 connection IDInboundEstablishState2.receiveSessionConfirmed(UDPPacket packet) Receive the last messages in the handshake, and create the PeerState.Methods in net.i2p.router.transport.udp with parameters of type PeerState2Modifier 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) UDPPacketPacketBuilder2.buildRelayIntro(byte[] signedData, PeerState2 charlie) From Bob to Charlie.(package private) UDPPacketPacketBuilder2.buildRelayRequest(byte[] signedData, PeerState2 bob) From Alice to Bob.(package private) UDPPacketPacketBuilder2.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) voidUDPTransport.changePeerAddress(PeerState2 peer, RemoteHostId newAddress) Remove and add to peersByRemoteHost map(package private) voidIntroductionManager.receiveRelayIntro(PeerState2 bob, Hash alice, byte[] data) We are Charlie and we got this from Bob.(package private) voidIntroductionManager.receiveRelayRequest(PeerState2 alice, byte[] data) We are Bob and we got this from Alice.(package private) voidEstablishmentManager.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) voidIntroductionManager.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.voidPeerTestManager.receiveTest(RemoteHostId from, PeerState2 fromPeer, int msg, int status, Hash h, byte[] data) Entry point for all in-session incoming packets.voidPeerTestState.setAlice(PeerState2 alice) SSU2 only