Packages that use I2NPMessageException
Package
Description
Low-level messages sent between routers - the Invisible Internet Network Protocol (I2NP).
NTCP2, the TCP transport: framed, ratchet-encrypted and mutually authenticated connections between routers.
SSU2, the UDP transport: datagram sessions with Holepunch peer discovery, plus the older SSU compatibility code.
Uses of I2NPMessageException in net.i2p.data.i2np
Methods in net.i2p.data.i2np that throw I2NPMessageExceptionModifier and TypeMethodDescriptionUnknownI2NPMessage.convert()Attempt to convert this message to a known message class.static 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.intFastI2NPMessageImpl.readBytes(byte[] data, int type, int offset, int maxLen) Ignore, but save, the checksum, to be used later if necessary.intI2NPMessage.readBytes(byte[] data, int type, int offset) Read the body into the data structures, after the initial type byte, using the current class's format as defined by the I2NP specification.intI2NPMessage.readBytes(byte[] data, int type, int offset, int maxLen) Read the body into the data structures, after the initial type byte, using the current class's format as defined by the I2NP specification.intI2NPMessageImpl.readBytes(byte[] data, int type, int offset) Read the header, then read the rest into buffer, then call readMessage in the implemented message type.intI2NPMessageImpl.readBytes(byte[] data, int type, int offset, int maxLen) Limit the max to read from the data buffer, so that we can use a large buffer but prevent the reader from reading off the end.voidDatabaseLookupMessage.readMessage(byte[] data, int offset, int dataSize, int type) Reads the message fields from the byte array.voidDatabaseSearchReplyMessage.readMessage(byte[] data, int offset, int dataSize, int type) Reads the message fields from the byte array.voidDatabaseStoreMessage.readMessage(byte[] data, int offset, int dataSize, int type) Reads the message fields from the byte array.voidDataMessage.readMessage(byte[] data, int offset, int dataSize, int type) voidDeliveryStatusMessage.readMessage(byte[] data, int offset, int dataSize, int type) Populate the message fields from the byte array, starting at the given offset.voidGarlicMessage.readMessage(byte[] data, int offset, int dataSize, int type) Read the message from a byte array.voidI2NPMessage.readMessage(byte[] data, int offset, int dataSize, int type) Read the body into the data structures, after the initial type byte and the uniqueId / expiration, using the current class's format as defined by the I2NP specification.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.I2NPMessageHandler.readMessage(byte[] data) Read an I2NPMessage from the byte array and return the fully populated object.intI2NPMessageHandler.readMessage(byte[] data, int offset) Result is retrieved withI2NPMessageHandler.lastRead().intI2NPMessageHandler.readMessage(byte[] data, int offset, int maxLen) Limit the max to read from the data buffer, so that we can use a large buffer but prevent the reader from reading off the end.voidI2NPMessageImpl.readMessage(byte[] data, int offset, int dataSize, int type, I2NPMessageHandler handler) Read the message fields from the byte array, ignoring the handler.voidOutboundTunnelBuildReplyMessage.readMessage(byte[] data, int offset, int dataSize, int type) Read the records from a byte array.voidShortTunnelBuildMessage.readMessage(byte[] data, int offset, int dataSize, int type) Read the records from a byte array.voidShortTunnelBuildReplyMessage.readMessage(byte[] data, int offset, int dataSize, int type) Unsupported; the reply is never deserialized.voidTunnelBuildMessageBase.readMessage(byte[] data, int offset, int dataSize, int type) Read the records from a byte array.voidTunnelDataMessage.readMessage(byte[] data, int offset, int dataSize, int type) Read and parse the message from raw data into fields.voidTunnelGatewayMessage.readMessage(byte[] data, int offset, int dataSize, int type) Read and parse the message from raw data into fields.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.voidUnknownI2NPMessage.readMessage(byte[] data, int offset, int dataSize, int type) Raw message data; may only be set once.voidVariableTunnelBuildMessage.readMessage(byte[] data, int offset, int dataSize, int type) Parse record count from first byte, then delegate to parent for record data.voidVariableTunnelBuildReplyMessage.readMessage(byte[] data, int offset, int dataSize, int type) Parse record count from first byte, then delegate to parent for record data.protected intDatabaseLookupMessage.writeMessageBody(byte[] out, int curIndex) Writes the message body to the output array, returning the new index.protected intDatabaseSearchReplyMessage.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected intDatabaseStoreMessage.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected intDeliveryStatusMessage.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected intGarlicMessage.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected abstract intI2NPMessageImpl.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected intOutboundTunnelBuildReplyMessage.writeMessageBody(byte[] out, int curIndex) Write the records to the output array, starting at the given index.protected intShortTunnelBuildMessage.writeMessageBody(byte[] out, int curIndex) Write the records to the output array, starting at the given index.protected intShortTunnelBuildReplyMessage.writeMessageBody(byte[] out, int curIndex) Unsupported; the reply is never serialized.protected intTunnelBuildMessageBase.writeMessageBody(byte[] out, int curIndex) Write the records to the output array, starting at the given index.protected intTunnelDataMessage.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected intTunnelGatewayMessage.writeMessageBody(byte[] out, int curIndex) Write the message body to the output array, starting at the given index.protected intVariableTunnelBuildMessage.writeMessageBody(byte[] out, int curIndex) Write record count byte followed by all encrypted build records.protected intVariableTunnelBuildReplyMessage.writeMessageBody(byte[] out, int curIndex) Write record count byte followed by all encrypted build records.Uses of I2NPMessageException in net.i2p.router.transport.ntcp
Methods in net.i2p.router.transport.ntcp that throw I2NPMessageExceptionModifier and TypeMethodDescriptionvoidNTCP2Payload.PayloadCallback.gotI2NP(I2NPMessage msg) Receive an I2NP message block.private static voidNTCP2Payload.processI2NP(I2PAppContext ctx, NTCP2Payload.PayloadCallback cb, byte[] payload, int i, int len) Parse an I2NP block (at least 9 bytes) and report it to the callback.static intNTCP2Payload.processPayload(I2PAppContext ctx, NTCP2Payload.PayloadCallback cb, byte[] payload, int off, int length, boolean isHandshake) Incoming payload.Uses of I2NPMessageException in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp that throw I2NPMessageExceptionModifier and TypeMethodDescriptionvoidSSU2Payload.PayloadCallback.gotI2NP(I2NPMessage msg) Receive an I2NP message block.(package private) static voidSSU2Payload.parseI2NP(I2PAppContext ctx, SSU2Payload.PayloadCallback cb, byte[] payload, int i, int len, boolean isHandshake) Parse an I2NP block (data blocks only, never in handshakes).static intSSU2Payload.processPayload(I2PAppContext ctx, SSU2Payload.PayloadCallback cb, byte[] payload, int off, int length, boolean isHandshake, RemoteHostId from) Incoming payload.