Uses of Interface
net.i2p.data.i2np.I2NPMessage
Packages that use I2NPMessage
Package
Description
This package defines the low-level messages sent between routers,
called the Invisible Internet Network Protocol (I2NP).
            The I2P router application handles the I2P network communication.
Creates and parses garlic messages.
A couple of classes, but most things are in kademlia.
The network database, including implementation of floodfills.
            The transport system allows the usage of communication layers that are below I2P in the stack, on which I2P messages are sent.
            The NTCP transport allows passing I2P messages on top of TCP.
            The UDP transport (also known as 'SSU transport') allows passing I2P messages on top of UDP.
All the work of managing locally created and participating tunnels,
creating and handling tunnel messages, and their encryption.
- 
Uses of I2NPMessage in net.i2p.data.i2np
Classes in net.i2p.data.i2np that implement I2NPMessageModifier and TypeClassDescriptionclassDefines the message a router sends to another router to search for a key in the network database.classDefines the message a router sends to another router in response to a search (DatabaseFindNearest or DatabaseLookup) when it doesn't have the value, specifying what routers it would search.classDefines the message a router sends to another router to test the network database reachability, as well as the reply message sent back.classDefines a message containing arbitrary bytes of data This is what goes in a GarlicClove.classDefines the message sent back in reply to a message when requested, containing the private ack id.classIgnore, but save, the SHA-256 checksum in the full 16-byte header when read in.classDefines the wrapped garlic messageclassDefines the base message implementation.classSent from the OBEP to the tunnel creator via an inbound tunnel.classVariable size, small records.classInternal use only, to convert an inbound STBM to a reply.classThe basic build message with 8 records.classBase for TBM, TBRM, VTBM, VTBRM Retrofitted over them.classThe basic build reply message with 8 records.classDefines the message sent between routers as part of the tunnel delivery The tunnel ID is changed in-place by TunnelParticipant.send(), so we can't reuse the checksum on output, but we still subclass FastI2NPMessageImpl so we don't verify the checksum on input...classDefines the message sent between one tunnel's endpoint and another's gateway.classThis is similar to DataMessage or GarlicMessage but with a variable message type.classVariable number of records.classTransmitted from the new outbound endpoint to the creator through a reply tunnel.Methods in net.i2p.data.i2np that return I2NPMessageModifier and TypeMethodDescriptionI2NPMessageImpl.Builder.build(I2PAppContext ctx) instantiate a new I2NPMessage to be populated shortlyUnknownI2NPMessage.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.GarlicClove.getData()TunnelGatewayMessage.getMessage()Warning, at the IBGW, where the message was read in, this will be an UnknownI2NPMessage.I2NPMessageHandler.lastRead()clear the last message read from a byte array with an offsetI2NPMessageHandler.readMessage(byte[] data) Read an I2NPMessage from the byte array and return the fully populated object.Methods in net.i2p.data.i2np with parameters of type I2NPMessageModifier and TypeMethodDescriptionvoidGarlicClove.setData(I2NPMessage msg) voidTunnelGatewayMessage.setMessage(I2NPMessage msg)  - 
Uses of I2NPMessage in net.i2p.router
Methods in net.i2p.router that return I2NPMessageMethods in net.i2p.router with parameters of type I2NPMessageModifier and TypeMethodDescriptionintInNetMessagePool.add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash) Add a new message to the pool.intInNetMessagePool.add(I2NPMessage messageBody, RouterIdentity fromRouter, Hash fromRouterHash, long msgIDBloomXor) Add a new message to the pool.HandlerJobBuilder.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) Create a new job to handle the received message.voidMessageHistory.droppedOtherMessage(I2NPMessage message, Hash from) We received another message we weren't waiting for and don't know how to handleintInNetMessagePool.handleReplies(I2NPMessage messageBody) booleanMessageSelector.isMatch(I2NPMessage message) Returns true if the received message matches the selector.voidReplyJob.setMessage(I2NPMessage message) Called by InNetMessagePool when an I2NPMessage matching a MessageSelector registered with the OutboundMessageRegistry is receivedConstructors in net.i2p.router with parameters of type I2NPMessageModifierConstructorDescriptionOutNetMessage(RouterContext context, I2NPMessage msg, long expiration, int priority, RouterInfo target) Standard constructor - 
Uses of I2NPMessage in net.i2p.router.message
Methods in net.i2p.router.message that return I2NPMessageModifier and TypeMethodDescriptionPayloadGarlicConfig.getPayload()Specify the I2NP message to be sent - if this is set, no other cloves can be included in this blockMethods in net.i2p.router.message with parameters of type I2NPMessageModifier and TypeMethodDescriptionGarlicMessageHandler.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) voidGarlicMessageReceiver.CloveReceiver.handleClove(DeliveryInstructions instructions, I2NPMessage data) voidHandleGarlicMessageJob.handleClove(DeliveryInstructions instructions, I2NPMessage data) Constructors in net.i2p.router.message with parameters of type I2NPMessageModifierConstructorDescriptionPayloadGarlicConfig(Certificate cert, long id, long expiration, DeliveryInstructions di, I2NPMessage message) SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, int timeoutMs, int priority) SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, int timeoutMs, int priority, long msgIDBloomXor) SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, Job onSend, ReplyJob onSuccess, Job onFail, MessageSelector selector, int timeoutMs, int priority, long msgIDBloomXor) SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, ReplyJob onSuccess, Job onFail, MessageSelector selector, int timeoutMs, int priority) SendMessageDirectJob(RouterContext ctx, I2NPMessage message, Hash toPeer, ReplyJob onSuccess, Job onFail, MessageSelector selector, int timeoutMs, int priority, long msgIDBloomXor)  - 
Uses of I2NPMessage in net.i2p.router.networkdb
Methods in net.i2p.router.networkdb with parameters of type I2NPMessageModifier and TypeMethodDescriptionprotected voidHandleDatabaseLookupMessageJob.sendMessage(I2NPMessage message, Hash toPeer, TunnelId replyTunnel)  - 
Uses of I2NPMessage in net.i2p.router.networkdb.kademlia
Methods in net.i2p.router.networkdb.kademlia that return I2NPMessageModifier and TypeMethodDescriptionprotected I2NPMessageExploreJob.buildMessage(TunnelId replyTunnelId, Hash replyGateway, long expiration, RouterInfo peer) Build the database search message, but unlike the normal searches, we're more explicit in what we /dont/ want.protected I2NPMessageSearchJob.buildMessage(TunnelId replyTunnelId, Hash replyGateway, long expiration, RouterInfo peer) Build the database search messageMethods in net.i2p.router.networkdb.kademlia with parameters of type I2NPMessageModifier and TypeMethodDescriptionFloodfillDatabaseLookupMessageHandler.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) FloodfillDatabaseStoreMessageHandler.createJob(I2NPMessage receivedMessage, RouterIdentity from, Hash fromHash) booleanFloodOnlyLookupSelector.isMatch(I2NPMessage message) booleanIterativeLookupSelector.isMatch(I2NPMessage message) This only returns true for DSMs, not for DSRMs.booleanSearchMessageSelector.isMatch(I2NPMessage message) booleanStoreMessageSelector.isMatch(I2NPMessage message) voidDirectLookupMatchJob.setMessage(I2NPMessage message) Override to not call failed() in setMessage(), as it will be called from runJob()voidFloodOnlyLookupMatchJob.setMessage(I2NPMessage message) voidSearchUpdateReplyFoundJob.setMessage(I2NPMessage message) (package private) static MessageWrapper.WrappedMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, Hash from, RouterInfo to) Garlic wrap a message from a client or this router, destined for a router, to hide the contents from the OBEP.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, RouterInfo to) Garlic wrap a message from nobody, destined for a router, to hide the contents from the OBEP.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, SessionKey encryptKey, SessionTag encryptTag) Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, SessionKey encryptKey, RatchetSessionTag encryptTag) Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW.static GarlicMessageMessageWrapper.wrap(RouterContext ctx, I2NPMessage m, MessageWrapper.OneTimeSession session) Garlic wrap a message from nobody, destined for an unknown router, to hide the contents from the IBGW. - 
Uses of I2NPMessage in net.i2p.router.transport
Methods in net.i2p.router.transport with parameters of type I2NPMessageModifier and TypeMethodDescriptionOutboundMessageRegistry.getOriginalMessages(I2NPMessage message) Retrieve all messages that are waiting for the specified message.voidTransportEventListener.messageReceived(I2NPMessage message, RouterIdentity fromRouter, Hash fromRouterHash) Message receivedvoidTransportImpl.messageReceived(I2NPMessage inMsg, RouterIdentity remoteIdent, Hash remoteIdentHash, long msToReceive, int bytesReceived) Message received from the I2NPMessageReader - send it to the listenervoidTransportManager.messageReceived(I2NPMessage message, RouterIdentity fromRouter, Hash fromRouterHash) Message received - 
Uses of I2NPMessage in net.i2p.router.transport.ntcp
Methods in net.i2p.router.transport.ntcp with parameters of type I2NPMessageModifier and TypeMethodDescriptionvoidInboundEstablishState.gotI2NP(I2NPMessage msg) voidNTCP2Payload.PayloadCallback.gotI2NP(I2NPMessage msg) Constructors in net.i2p.router.transport.ntcp with parameters of type I2NPMessage - 
Uses of I2NPMessage in net.i2p.router.transport.udp
Methods in net.i2p.router.transport.udp with parameters of type I2NPMessageModifier and TypeMethodDescriptionvoidInboundEstablishState2.gotI2NP(I2NPMessage msg) voidOutboundEstablishState2.gotI2NP(I2NPMessage msg) voidPeerState2.gotI2NP(I2NPMessage msg) voidPeerStateDestroyed.gotI2NP(I2NPMessage msg) voidSSU2Payload.PayloadCallback.gotI2NP(I2NPMessage msg) voidUDPTransport.messageReceived(I2NPMessage inMsg, RouterIdentity remoteIdent, Hash remoteIdentHash, long msToReceive, int bytesReceived) infinite loop public RouterAddress getCurrentAddress() { if (needsRebuild()) rebuildExternalAddress(false); return super.getCurrentAddress(); }(package private) voidUDPTransport.send(I2NPMessage msg, List<OutNetMessage> msgs, PeerState peer) "injected" message from the EstablishmentManager, plus pending messages to send, so the messages may be bundled efficiently.(package private) voidUDPTransport.send(I2NPMessage msg, PeerState peer) "injected" message from the EstablishmentManager.Method parameters in net.i2p.router.transport.udp with type arguments of type I2NPMessageModifier and TypeMethodDescription(package private) voidUDPTransport.send(List<I2NPMessage> msgs, PeerState peer) "injected" messages from the EstablishmentManager.Constructors in net.i2p.router.transport.udp with parameters of type I2NPMessageModifierConstructorDescriptionOutboundMessageState(I2PAppContext context, I2NPMessage msg, PeerState peer) "injected" message from the establisher. - 
Uses of I2NPMessage in net.i2p.router.tunnel
Methods in net.i2p.router.tunnel with parameters of type I2NPMessageModifier and TypeMethodDescriptionvoidPumpedTunnelGateway.add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel) Add a message to be sent down the tunnel, either sending it now (perhaps coalesced with other pending messages) or after a brief pause (_flushFrequency).voidThrottledPumpedTunnelGateway.add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel) Possibly drop a message due to bandwidth before adding it to the preprocessor queue.voidTunnelGateway.add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel) Add a message to be sent down the tunnel, either sending it now (perhaps coalesced with other pending messages) or after a brief pause (_flushFrequency).voidTunnelGatewayZeroHop.add(I2NPMessage msg, Hash toRouter, TunnelId toTunnel) Add a message to be sent down the tunnel (immediately forwarding it to theInboundMessageDistributororOutboundMessageDistributor, as necessary).voidTunnelDispatcher.dispatchOutbound(I2NPMessage msg, TunnelId outboundTunnel, Hash targetPeer) We are the outbound tunnel gateway (we created it), so wrap up this message with instructions to be forwarded to the targetPeer when it reaches the endpoint.voidTunnelDispatcher.dispatchOutbound(I2NPMessage msg, TunnelId outboundTunnel, TunnelId targetTunnel, Hash targetPeer) We are the outbound tunnel gateway (we created it), so wrap up this message with instructions to be forwarded to the targetTunnel on the targetPeer when it reaches the endpoint.voidInboundMessageDistributor.distribute(I2NPMessage msg, Hash target) voidInboundMessageDistributor.distribute(I2NPMessage msg, Hash target, TunnelId tunnel) voidOutboundMessageDistributor.distribute(I2NPMessage msg, Hash target) Warning - as of 0.9.63, msg will be an UnknownI2NPMessage, and must be converted before handling locally.voidOutboundMessageDistributor.distribute(I2NPMessage msg, Hash target, TunnelId tunnel) Warning - as of 0.9.63, msg will be an UnknownI2NPMessage, and must be converted before handling locally.voidInboundMessageDistributor.handleClove(DeliveryInstructions instructions, I2NPMessage data) Handle a clove removed from the garlic messagevoidFragmentHandler.DefragmentedReceiver.receiveComplete(I2NPMessage msg, Hash toRouter, TunnelId toTunnel) Receive a fully formed I2NPMessage out of the tunnelConstructors in net.i2p.router.tunnel with parameters of type I2NPMessageModifierConstructorDescriptionOutboundGatewayMessage(I2NPMessage message, Hash toRouter, TunnelId toTunnel) PendingGatewayMessage(I2NPMessage message, Hash toRouter, TunnelId toTunnel)