public static class SAMStreamSession.SAMStreamSessionSocketReader extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected I2PSocket | i2pSocketi2pSocket. |
protected int | idid. |
protected Object | runningLockrunningLock. |
protected boolean | stillRunningstillRunning. |
| Constructor and Description |
|---|
SAMStreamSessionSocketReader(I2PSocket s,
int id)Create a new SAM STREAM session socket reader |
| Modifier and Type | Method and Description |
|---|---|
void | run()Run the socket reader loop. |
void | stopRunning()Stop a SAM STREAM session socket reader thread immediately. |
protected final I2PSocket i2pSocket
protected final int id
protected final Object runningLock
protected volatile boolean stillRunning
public SAMStreamSessionSocketReader(I2PSocket s, int id)
s - Socket to be handledid - Unique id assigned to the handler