java.lang.Object
net.i2p.sam.SAMv3StreamSession.ConnectTask
- All Implemented Interfaces:
Runnable
- Enclosing class:
SAMv3StreamSession
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DestinationThe destination to connect to.private final SAMv3HandlerThe handler that started the connect.private final StringNickname of the session, for the logs.private final I2PSocketOptionsSocket options for the connect.private final booleanTrue for extra logging.Constructor Summary
ConstructorsConstructorDescriptionConnectTask(SAMv3Handler handler, Destination dest, I2PSocketOptions opts, boolean verbose, String nick) Builds the connect task.Method Summary
Modifier and TypeMethodDescriptionprivate voidreportError(String status, Exception e) Sends an error reply to the client.voidrun()Connect to the requested destination and serve the connection until it closes.
Field Details
handler
The handler that started the connect.dest
The destination to connect to.opts
Socket options for the connect.verbose
private final boolean verboseTrue for extra logging.nick
Nickname of the session, for the logs.
Constructor Details
ConnectTask
ConnectTask(SAMv3Handler handler, Destination dest, I2PSocketOptions opts, boolean verbose, String nick) Builds the connect task.- Parameters:
handler- the handler that started the connectdest- the destination to connect toopts- the socket optionsverbose- true for extra loggingnick- the session nickname, for the logs
Method Details
run
reportError