java.lang.Object
net.i2p.sam.SAMv2StreamSession.StreamConnector
All Implemented Interfaces:
Runnable
Enclosing class:
SAMv2StreamSession

private class SAMv2StreamSession.StreamConnectorextends Object implements Runnable
SAM STREAM socket connecter, running in its own thread.
  • Field Details

    • id

      private final int id
      The id of this session.
    • dest

      private final Destination dest
      The destination the session connects to.
    • opts

      private final I2PSocketOptions opts
      The socket options of the session.
  • Constructor Details

    • StreamConnector

      public StreamConnector(int id, Destination dest, I2PSocketOptions opts)
      Create a new SAM STREAM session socket reader.
      Parameters:
      id - Unique id assigned to the handler
      dest - Destination to reach
      opts - Socket options (I2PSocketOptions)
  • Method Details

    • run

      public void run()
      Connects the socket to the destination, then writes to it until closed.
      Specified by:
      run in interface Runnable