Packages that use I2NPMessageHandler
Package
Description
Low-level messages sent between routers - the Invisible Internet Network Protocol (I2NP).
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Tunnel messages and the tunnel layer: the
TunnelManagerFacade, tunnel build request and reply processing, and the inbound and outbound tunnel structures.Uses of I2NPMessageHandler in net.i2p.data.i2np
Methods in net.i2p.data.i2np with parameters of type I2NPMessageHandlerModifier and TypeMethodDescriptionstatic I2NPMessageI2NPMessageImpl.fromRawByteArray(I2PAppContext ctx, byte[] buffer, int offset, int len, I2NPMessageHandler handler) Read the message with a short 5-byte header.static I2NPMessageI2NPMessageImpl.fromRawByteArrayNTCP2(I2PAppContext ctx, byte[] buffer, int offset, int len, I2NPMessageHandler handler) Read the message with a short 9-byte header.voidI2NPMessage.readMessage(byte[] data, int offset, int dataSize, int type, I2NPMessageHandler handler) Read the message fields from the byte array, dispatching them to the given handler.voidI2NPMessageImpl.readMessage(byte[] data, int offset, int dataSize, int type, I2NPMessageHandler handler) Read the message fields from the byte array, ignoring the handler.voidTunnelGatewayMessage.readMessage(byte[] data, int offset, int dataSize, int type, I2NPMessageHandler handler) Note that for efficiency at the IBGW, this does not fully deserialize the included I2NP Message.Uses of I2NPMessageHandler in net.i2p.router.transport.udp
Fields in net.i2p.router.transport.udp declared as I2NPMessageHandlerModifier and TypeFieldDescriptionprivate final I2NPMessageHandlerMessageReceiver.Runner._handlerHandler processing the messages.Methods in net.i2p.router.transport.udp with parameters of type I2NPMessageHandlerModifier and TypeMethodDescription(package private) voidMessageReceiver.loop(I2NPMessageHandler handler) Main processing loop.private I2NPMessageMessageReceiver.readMessage(ByteArray buf, InboundMessageState state, I2NPMessageHandler handler) Assemble all the fragments into an I2NP message.Uses of I2NPMessageHandler in net.i2p.router.tunnel
Fields in net.i2p.router.tunnel with type parameters of type I2NPMessageHandlerModifier and TypeFieldDescriptionprivate final ThreadLocal<I2NPMessageHandler> FragmentHandler._inboundHandlerPer-thread I2NP message reader, used for inbound data only.