java.lang.Object
net.i2p.sam.SAMStreamSession.SAMStreamSessionServer
- All Implemented Interfaces:
Runnable
- Enclosing class:
SAMStreamSession
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ObjectLock for server running state.private final I2PServerSocketServer socket.private booleanCleared to tell the reader thread to stop.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionvoidrun()Accepts incoming connections and serves them until the session closes.voidStop a SAM STREAM session server.
Field Details
runningLock
Lock for server running state.stillRunning
private volatile boolean stillRunningCleared to tell the reader thread to stop.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