Packages that use SSU2Payload.Block
Package
Description
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Uses of SSU2Payload.Block in net.i2p.router.transport.udp
Subclasses of SSU2Payload.Block in net.i2p.router.transport.udpModifier and TypeClassDescriptionstatic classBlock containing acknowledgment data.static classBlock containing IP address and port information.static classBlock containing the current date and time.static classSame format as I2NPBlock.static classFollow-on fragment block for SSU2 payload.static classBlock containing I2NP message data.static classBlock containing a new session token.static classBlock containing session options.static classBlock containing padding data.static classPath challenge block for SSU2 payload.static classPath response block for SSU2 payload.static classBlock containing peer test data.static classBlock containing relay introduction data.static classBlock containing relay request data.static classBlock containing relay response data.static classBlock containing relay tag data.static classBlock containing relay tag request data.static classBlock containing router information data.static classBlock containing session termination data.Fields in net.i2p.router.transport.udp with type parameters of type SSU2Payload.BlockModifier and TypeFieldDescription(package private) final List<SSU2Payload.Block> PacketBuilder2.BlockPool.blocksThe list passed to writePayload(); cleared and refilled per call.Methods in net.i2p.router.transport.udp that return SSU2Payload.BlockModifier and TypeMethodDescriptionprivate SSU2Payload.BlockPacketBuilder2.getPadding(int len, int max) Random padding block up to the maximum size.private SSU2Payload.BlockPacketBuilder2.getPadding(int len, int max, int maxPadding) Random padding block with an explicit cap.Methods in net.i2p.router.transport.udp with parameters of type SSU2Payload.BlockModifier and TypeMethodDescriptionPacketBuilder2.buildPeerTestToAlice(int code, Hash charlieHash, byte[] signedData, SSU2Payload.Block riBlock, PeerState2 alice) Build a packet as Bob to Alice, with the response from Charlie, or a rejection by Bob.PacketBuilder2.buildPeerTestToCharlie(Hash aliceHash, byte[] signedData, SSU2Payload.Block riBlock, PeerState2 charlie) Build a packet as Bob to Charlie to help test Alice.(package private) UDPPacketPacketBuilder2.buildRelayIntro(byte[] signedData, SSU2Payload.Block riBlock, PeerState2 charlie) From Bob to Charlie.private voidPacketBuilder2.encryptPeerTest(UDPPacket packet, byte[] chachaKey, long n, byte[] hdrKey1, byte[] hdrKey2, byte[] ip, int port, SSU2Payload.Block ptBlock) Also used for hole punch with a relay request block.Method parameters in net.i2p.router.transport.udp with type arguments of type SSU2Payload.BlockModifier and TypeMethodDescriptionprivate intPacketBuilder2.addHandshakePadding(List<SSU2Payload.Block> blocks, int len, int version, boolean isIPv6, int pqlen, int mtu, int maxPadding) Adds the padding block a handshake packet can afford to the block list, returning the new payload length.(package private) static intPacketBuilder2.otherBlocksSize(List<SSU2Payload.Block> otherBlocks) Sum of the on-wire lengths of the non-fragment blocks to be appended to a data packet, used to budget ack space.(package private) voidPacketBuilder2.BlockPool.release(List<SSU2Payload.Block> used) Returns all the blocks to their type pools for reuse.static intSSU2Payload.writePayload(byte[] payload, int off, List<SSU2Payload.Block> blocks) Serialize a list of blocks into a payload.