java.lang.Object
net.i2p.sam.SAMStreamSession.SAMStreamSessionSocketReader
net.i2p.sam.SAMStreamSession.SAMv1StreamSessionSocketReader
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
SAMv2StreamSession.SAMv2StreamSessionSocketReader
- Enclosing class:
SAMStreamSession
public class SAMStreamSession.SAMv1StreamSessionSocketReaderextends SAMStreamSession.SAMStreamSessionSocketReader
SAMv1StreamSessionSocketReader.
Field Summary
Fields inherited from class SAMStreamSession.SAMStreamSessionSocketReader
i2pSocket, id, runningLock, stillRunningConstructor Summary
ConstructorsConstructorDescriptionSAMv1StreamSessionSocketReader(I2PSocket s, int id) Create a new SAM STREAM session socket reader.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidrun()Reads from the socket, forwarding bytes to the client until it ends.voidStop a SAM STREAM session socket reader thead immediately.
Constructor Details
SAMv1StreamSessionSocketReader
Create a new SAM STREAM session socket reader.- Parameters:
s- Socket to be handledid- Unique id assigned to the handler- Throws:
IOException- if the reader for that socket cannot be created
Method Details
stopRunning
public void stopRunning()Stop a SAM STREAM session socket reader thead immediately.- Overrides:
stopRunningin classSAMStreamSession.SAMStreamSessionSocketReader
run
public void run()Reads from the socket, forwarding bytes to the client until it ends.- Specified by:
runin interfaceRunnable- Overrides:
runin classSAMStreamSession.SAMStreamSessionSocketReader