java.lang.Object
net.i2p.sam.SAMv2StreamSession.StreamConnector
- All Implemented Interfaces:
Runnable
- Enclosing class:
SAMv2StreamSession
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DestinationThe destination the session connects to.private final intThe id of this session.private final I2PSocketOptionsThe socket options of the session.Constructor Summary
ConstructorsConstructorDescriptionStreamConnector(int id, Destination dest, I2PSocketOptions opts) Create a new SAM STREAM session socket reader.Method Summary
All MethodsModifier and TypeMethodDescriptionvoidrun()Connects the socket to the destination, then writes to it until closed.
Field Details
id
private final int idThe id of this session.dest
The destination the session connects to.opts
The socket options of the session.
Constructor Details
StreamConnector
Create a new SAM STREAM session socket reader.- Parameters:
id- Unique id assigned to the handlerdest- Destination to reachopts- Socket options (I2PSocketOptions)
Method Details
run