Uses of Interface
net.i2p.data.i2cp.I2CPMessage
Packages that use I2CPMessage
Package
Description
Implements the base I2P SDK for developing applications that communicate
through I2P.
The Invisible Internet Client Protocol (I2CP) allows applications simplified access to
the I2P network without requiring them to deal with the issues involved with the
Invisible Internet Network Protocol (I2NP).
Interface and classes for a router and client
within the same JVM to directly pass I2CP messages using Queues
instead of serialized messages over socket streams.
Implements the router side of the I2CP interface,
which is the API for applications to send and receive data through the router.
-
Uses of I2CPMessage in net.i2p.client.impl
Methods in net.i2p.client.impl with parameters of type I2CPMessageModifier and TypeMethodDescriptionvoidClientWriterRunner.addMessage(I2CPMessage msg) Add this message to the writer's queue.voidBWLimitsMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidDestReplyMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidDisconnectMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidHostReplyMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidI2CPMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidMessagePayloadMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidMessageStatusMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidRequestLeaseSetMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidRequestVariableLeaseSetMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidSessionStatusMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidSetDateMessageHandler.handleMessage(I2CPMessage message, I2PSessionImpl session) voidI2PSessionImpl.messageReceived(I2CPMessageReader reader, I2CPMessage message) The I2CPMessageEventListener callback.(package private) voidI2PSessionImpl.sendMessage(I2CPMessage message) Deliver an I2CP message to the router As of 0.9.3, may block for several seconds if the write queue to the router is full(package private) voidSubSession.sendMessage(I2CPMessage message) Deliver an I2CP message to the router May block for several seconds if the write queue to the router is full(package private) voidI2PSessionImpl.sendMessage_unchecked(I2CPMessage message) Deliver an I2CP message to the router.(package private) voidSubSession.sendMessage_unchecked(I2CPMessage message) Deliver an I2CP message to the router. -
Uses of I2CPMessage in net.i2p.data.i2cp
Classes in net.i2p.data.i2cp that implement I2CPMessageModifier and TypeClassDescriptionclassTell the other side the limitsclassAdvise the router that the endpoint is blinded.classLike CreateLeaseSetMessage, but supports both old and new LeaseSet types, including LS2, Meta, and Encrypted.classDefines the message a client sends to a router when authorizing the LeaseSetclassDefines the message a client sends to a router when establishing a new session.classRequest the router look up the dest for a hashclassResponse to DestLookupMessage.classDefines the message a client sends to a router when destroying existing session.classDefines the message a client sends to a router when destroying existing session.classRequest the router tells us the current bw limitsclassRequest the other side to send us what they think the current time is.classRequest the router look up the dest for a hash or a host.classResponse to HostLookupMessage.classDefines the base message implementation.classDefines the payload message a router sends to the clientclassDefines the message a router sends to a client about a single message.classDefines the message a client sends to a router when asking the router to start sending a message to it.classDefines the message a client sends to a router when asking the router to start sending a message to it.classDefines the message a client sends to a router when updating the config on an existing session.classDefines the message a client sends to a router when asking the router what its address visibility isclassDefines the message a router sends to a client to request that a leaseset be created and signed.classDefines the message a router sends to a client to request that a leaseset be created and signed.classSame as SendMessageMessage, but with an expiration to be passed to the router As of 0.8.4, retrofitted to use DateAndFlags.classDefines the message a client sends to a router to ask it to deliver a new messageclassDefines the message a router sends to a client indicating the status of the session.classTell the other side what time it is.Methods in net.i2p.data.i2cp that return I2CPMessageModifier and TypeMethodDescriptionstatic I2CPMessageI2CPMessageHandler.readMessage(InputStream in) Read an I2CPMessage from the stream and return the fully populated object.Methods in net.i2p.data.i2cp with parameters of type I2CPMessageModifier and TypeMethodDescriptionvoidI2CPMessageReader.I2CPMessageEventListener.messageReceived(I2CPMessageReader reader, I2CPMessage message) Notify the listener that a message has been received from the given reader -
Uses of I2CPMessage in net.i2p.internal
Classes in net.i2p.internal that implement I2CPMessageModifier and TypeClassDescriptionclassFor marking end-of-queues in a standard manner.Methods in net.i2p.internal that return I2CPMessageModifier and TypeMethodDescriptionabstract I2CPMessageI2CPMessageQueue.poll()Receive a message, nonblocking.abstract I2CPMessageI2CPMessageQueue.take()Receive a message, blocking until one is available.Methods in net.i2p.internal with parameters of type I2CPMessageModifier and TypeMethodDescriptionabstract booleanI2CPMessageQueue.offer(I2CPMessage msg) Send a message, nonblocking.abstract booleanI2CPMessageQueue.offer(I2CPMessage msg, long timeout) Send a message, blocking.abstract voidI2CPMessageQueue.put(I2CPMessage msg) Send a message, blocking until space is available. -
Uses of I2CPMessage in net.i2p.router.client
Methods in net.i2p.router.client that return I2CPMessageModifier and TypeMethodDescriptionI2CPMessageQueueImpl.poll()Receive a message, nonblockingI2CPMessageQueueImpl.take()Receive a message, blocking until one is availableMethods in net.i2p.router.client with parameters of type I2CPMessageModifier and TypeMethodDescriptionvoidClientWriterRunner.addMessage(I2CPMessage msg) Add this message to the writer's queue Nonblocking, throws exception if queue is full(package private) voidClientConnectionRunner.doSend(I2CPMessage msg) Actually send the I2CPMessage to the peer through the socket(package private) voidQueuedClientConnectionRunner.doSend(I2CPMessage msg) Actually send the I2CPMessage to the client.voidClientMessageEventListener.messageReceived(I2CPMessageReader reader, I2CPMessage message) Handle an incoming message and dispatch it to the appropriate handlerbooleanI2CPMessageQueueImpl.offer(I2CPMessage msg) Send a message, nonblockingbooleanI2CPMessageQueueImpl.offer(I2CPMessage msg, long timeout) Send a message, blocking.voidI2CPMessageQueueImpl.put(I2CPMessage msg) Send a message, blocking until space is available(package private) voidClientConnectionRunner.writeMessage(I2CPMessage msg) Not thread-safe.(package private) voidQueuedClientConnectionRunner.writeMessage(I2CPMessage msg) In super(), doSend queues it to the writer thread and the writer thread calls writeMessage() to write to the output stream.Constructor parameters in net.i2p.router.client with type arguments of type I2CPMessageModifierConstructorDescription