java.lang.Object
net.i2p.sam.SAMStreamSession.SAMStreamSessionServer
All Implemented Interfaces:
Runnable
Enclosing class:
SAMStreamSession

public class SAMStreamSession.SAMStreamSessionServerextends Object implements Runnable
SAM STREAM session server, running in its own thread. It will wait for incoming connections from the I2P network.
  • Field Details

    • runningLock

      private final Object runningLock
      Lock for server running state.
    • stillRunning

      private volatile boolean stillRunning
      Cleared to tell the reader thread to stop.
    • serverSocket

      private final I2PServerSocket serverSocket
      Server socket.
  • Constructor Details

    • SAMStreamSessionServer

      public SAMStreamSessionServer()
      Create a new SAM STREAM session server.
  • Method Details

    • stopRunning

      public void stopRunning()
      Stop a SAM STREAM session server.
    • run

      public void run()
      Accepts incoming connections and serves them until the session closes.
      Specified by:
      run in interface Runnable