All Implemented Interfaces:
I2PSession, I2CPMessageReader.I2CPMessageEventListener

public class I2PSimpleSessionextends I2PSessionImpl2
Create a new session for doing naming and bandwidth queries only. Do not create a Destination. Don't create a producer. Do not send/receive messages to other Destinations. Cannot handle multiple simultaneous queries atm. Could be expanded to ask the router other things.
  • Field Details

    • BUF_SIZE

      private static final int BUF_SIZE
      Size of the stream copy buffer, in bytes.
      See Also:
  • Constructor Details

    • I2PSimpleSession

      public I2PSimpleSession(I2PAppContext context, Properties options) throws I2PSessionException
      Create a new session for doing naming and bandwidth queries only. Do not create a destination.
      Parameters:
      context - the application context the session and its message handlers are built around
      options - set of options to configure the router with, if null will use System properties
      Throws:
      I2PSessionException - if there is a problem
  • Method Details