Uses of Class
net.i2p.router.transport.udp.UDPPacket
| Package | Description |
|---|---|
| net.i2p.router.transport.udp |
The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
|
-
Uses of UDPPacket in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp that return UDPPacket Modifier and Type Method Description static UDPPacketUDPPacket. acquire(RouterContext ctx, boolean inbound)UDPPacketPacketBuilder. buildACK(PeerState peer, List<ACKBitfield> ackBitfields)Build the ack packet.UDPPacketPacketBuilder. buildHolePunch(InetAddress to, int port)Creates an empty unauthenticated packet for hole punching.UDPPacketPacketBuilder. buildPacket(byte[] data, InetAddress to, int port)TESTING ONLY.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. buildPeerTestFromAlice(InetAddress toIP, int toPort, SessionKey toIntroKey, long nonce, SessionKey aliceIntroKey)Build a packet as if we are Alice and we either want Bob to begin a peer test or Charlie to finish a peer test.UDPPacketPacketBuilder. buildPeerTestFromAlice(InetAddress toIP, int toPort, SessionKey toCipherKey, SessionKey toMACKey, long nonce, SessionKey aliceIntroKey)Build a packet as if we are Alice and we either want Bob to begin a peer test or Charlie to finish a peer test.UDPPacketPacketBuilder. buildPeerTestToAlice(InetAddress aliceIP, int alicePort, SessionKey aliceIntroKey, SessionKey charlieIntroKey, long nonce)Build a packet as if we are either Bob or Charlie and we are helping test Alice.UDPPacketPacketBuilder. buildPeerTestToBob(InetAddress bobIP, int bobPort, InetAddress aliceIP, int alicePort, SessionKey aliceIntroKey, long nonce, SessionKey bobCipherKey, SessionKey bobMACKey)Build a packet as if we are Charlie sending Bob a packet verifying that we will help test Alice.UDPPacketPacketBuilder. buildPeerTestToCharlie(InetAddress aliceIP, int alicePort, SessionKey aliceIntroKey, long nonce, InetAddress charlieIP, int charliePort, SessionKey charlieCipherKey, SessionKey charlieMACKey)Build a packet as if we are Bob sending Charlie a packet to help test Alice.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)UDPPacket[]PacketBuilder. buildSessionConfirmedPackets(OutboundEstablishState state, RouterIdentity ourIdentity)Build a new series of SessionConfirmed packets for the given peer, encrypting it as necessary.UDPPacketPacketBuilder. buildSessionCreatedPacket(InboundEstablishState state, int externalPort, SessionKey ourIntroKey)Build a new SessionCreated packet for the given peer, encrypting it as necessary.UDPPacketPacketBuilder. buildSessionDestroyPacket(InboundEstablishState peer)Build a destroy packet, which contains a header but no body.UDPPacketPacketBuilder. buildSessionDestroyPacket(OutboundEstablishState peer)Build a destroy packet, which contains a header but no body.UDPPacketPacketBuilder. buildSessionDestroyPacket(PeerState peer)Build a destroy packet, which contains a header but no body.UDPPacketPacketBuilder. buildSessionRequestPacket(OutboundEstablishState state)Build a new SessionRequest packet for the given peer, encrypting it as necessary.UDPPacketUDPEndpoint. receive()Blocking call to receive the next inbound UDP packet from any peer.UDPPacketPacketHandler. receiveNext()Blocking call to retrieve the next inbound packet, or null if we have shut down.Methods in net.i2p.router.transport.udp that return types with arguments of type UDPPacket Modifier and Type Method Description List<UDPPacket>PacketBuilder. buildRelayRequest(UDPTransport transport, EstablishmentManager emgr, OutboundEstablishState state, SessionKey ourIntroKey)build intro packets for each of the published introducersList<UDPPacket>OutboundMessageFragments. getNextVolley()Fetch all the packets for a message volley, blocking until there is a message which can be fully transmitted (or the transport is shut down).Methods in net.i2p.router.transport.udp with parameters of type UDPPacket Modifier and Type Method Description voidUDPSender. add(UDPPacket packet)Put it on the queue.voidUDPSender. add(UDPPacket packet, int blockTime)Deprecated.use add(packet)voidUDPPacketReader. initialize(UDPPacket packet)voidPacketHandler. queueReceived(UDPPacket packet)Blocking call to retrieve the next inbound packet, or null if we have shut down.voidPacketPusher. send(UDPPacket packet)This sends it directly out, bypassing OutboundMessageFragments and the PacketPusher.voidUDPEndpoint. send(UDPPacket packet)Add the packet to the outobund queue to be sent ASAP (as allowed by the bandwidth limiter) BLOCKING if queue is full.(package private) voidUDPTransport. send(UDPPacket packet)This sends it directly out, bypassing OutboundMessageFragments.