java.lang.Object
net.i2p.sam.SAMStreamSession.SAMStreamSessionSocketReader
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
SAMStreamSession.SAMv1StreamSessionSocketReader
- Enclosing class:
SAMStreamSession
Field Summary
Constructor Summary
ConstructorsConstructorDescriptionSAMStreamSessionSocketReader(I2PSocket s, int id) Create a new SAM STREAM session socket reader.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidrun()Run the socket reader loop.voidStop a SAM STREAM session socket reader thread immediately.
Field Details
i2pSocket
The tunnel socket this reader drains.runningLock
Guards the run loop's state against a concurrent stop.stillRunning
protected volatile boolean stillRunningGuarded by runningLock; cleared on stop.id
protected final int idStream id for this reader.
Constructor Details
SAMStreamSessionSocketReader
Create a new SAM STREAM session socket reader.- Parameters:
s- Socket to be handledid- Unique id assigned to the handler
Method Details
stopRunning
public void stopRunning()Stop a SAM STREAM session socket reader thread immediately.run