Package net.i2p.sam

Class SAMStreamSession.SAMStreamSessionSocketReader

    • Field Detail

      • i2pSocket

        protected final I2PSocket i2pSocket
      • runningLock

        protected final Object runningLock
      • stillRunning

        protected volatile boolean stillRunning
      • id

        protected final int id
    • Constructor Detail

      • SAMStreamSessionSocketReader

        public SAMStreamSessionSocketReader​(I2PSocket s,
                                            int id)
                                     throws IOException
        Create a new SAM STREAM session socket reader
        Parameters:
        s - Socket to be handled
        id - Unique id assigned to the handler
        Throws:
        IOException
    • Method Detail

      • stopRunning

        public void stopRunning()
        Stop a SAM STREAM session socket reader thread immediately.
      • run

        public void run()
        Specified by:
        run in interface Runnable