Uses of Class
net.i2p.data.i2np.I2NPMessageException
| Package | Description |
|---|---|
| net.i2p.data.i2np |
This package defines the low-level messages sent between routers,
called the Invisible Internet Network Protocol (I2NP).
|
| net.i2p.router.crypto.ratchet |
Implementation of ECIES-X25519-AEAD-Ratchet (proposal 144).
|
| net.i2p.router.transport.ntcp |
The NTCP transport allows passing I2P messages on top of TCP.
|
-
Uses of I2NPMessageException in net.i2p.data.i2np
Methods in net.i2p.data.i2np that throw I2NPMessageException Modifier and Type Method Description I2NPMessageUnknownI2NPMessage. convert()Attempt to convert this message to a known message class.static I2NPMessageI2NPMessageImpl. createMessage(I2PAppContext context, int type)Yes, this is fairly ugly, but its the only place it ever happens.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 specificationintI2NPMessage. 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 specificationintI2NPMessageImpl. readBytes(byte[] data, int type, int offset)Read the header, then read the rest into buffer, then call readMessage in the implemented message typeintI2NPMessageImpl. readBytes(byte[] data, int type, int offset, int maxLen)Set a limit on 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)voidDatabaseSearchReplyMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidDatabaseStoreMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidDataMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidDeliveryStatusMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidGarlicMessage. readMessage(byte[] data, int offset, int dataSize, int type)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 specificationvoidI2NPMessage. readMessage(byte[] data, int offset, int dataSize, int type, I2NPMessageHandler handler)I2NPMessageI2NPMessageHandler. readMessage(byte[] data)Read an I2NPMessage from the byte array and return the fully populated object.intI2NPMessageHandler. readMessage(byte[] data, int offset)Result is retreived with lastRead()intI2NPMessageHandler. readMessage(byte[] data, int offset, int maxLen)Set a limit on 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)voidInboundTunnelBuildMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidOutboundTunnelBuildReplyMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidShortTunnelBuildMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidShortTunnelBuildReplyMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidTunnelBuildMessageBase. readMessage(byte[] data, int offset, int dataSize, int type)voidTunnelDataMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidTunnelGatewayMessage. readMessage(byte[] data, int offset, int dataSize, int type)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)voidVariableTunnelBuildMessage. readMessage(byte[] data, int offset, int dataSize, int type)voidVariableTunnelBuildReplyMessage. readMessage(byte[] data, int offset, int dataSize, int type)protected intDatabaseLookupMessage. writeMessageBody(byte[] out, int curIndex)protected intDatabaseSearchReplyMessage. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given indexprotected intDatabaseStoreMessage. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given indexprotected intDeliveryStatusMessage. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given indexprotected intGarlicMessage. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given indexprotected abstract intI2NPMessageImpl. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given index.protected intInboundTunnelBuildMessage. writeMessageBody(byte[] out, int curIndex)protected intOutboundTunnelBuildReplyMessage. writeMessageBody(byte[] out, int curIndex)protected intShortTunnelBuildMessage. writeMessageBody(byte[] out, int curIndex)protected intShortTunnelBuildReplyMessage. writeMessageBody(byte[] out, int curIndex)protected intTunnelBuildMessageBase. writeMessageBody(byte[] out, int curIndex)protected intTunnelDataMessage. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given indexprotected intTunnelGatewayMessage. writeMessageBody(byte[] out, int curIndex)write the message body to the output array, starting at the given indexprotected intVariableTunnelBuildMessage. writeMessageBody(byte[] out, int curIndex)protected intVariableTunnelBuildReplyMessage. writeMessageBody(byte[] out, int curIndex) -
Uses of I2NPMessageException in net.i2p.router.crypto.ratchet
Methods in net.i2p.router.crypto.ratchet that throw I2NPMessageException Modifier and Type Method Description static intRatchetPayload. processPayload(I2PAppContext ctx, RatchetPayload.PayloadCallback cb, byte[] payload, int off, int length, boolean isHandshake)Incoming payload. -
Uses of I2NPMessageException in net.i2p.router.transport.ntcp
Methods in net.i2p.router.transport.ntcp that throw I2NPMessageException Modifier and Type Method Description voidNTCP2Payload.PayloadCallback. gotI2NP(I2NPMessage msg)static intNTCP2Payload. processPayload(I2PAppContext ctx, NTCP2Payload.PayloadCallback cb, byte[] payload, int off, int length, boolean isHandshake)Incoming payload.