net.i2p.i2ptunnel
public class I2PTunnelClient extends I2PTunnelClientBase
Modifier and Type | Field and Description |
---|---|
protected List<Destination> |
dests
list of Destination objects that we point at
|
protected long |
readTimeout |
_clientId, _context, _executor, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, mySockets, sockLock, sockMgr
open
Constructor and Description |
---|
I2PTunnelClient(int localPort,
String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
String pkf) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientConnectionRun(Socket s)
Manage a connection in a separate thread.
|
long |
getReadTimeout() |
void |
setReadTimeout(long ms) |
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, close, closeSocket, createI2PSocket, createI2PSocket, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, manageConnection, run, startRunning, verifySocketManager
attachEventDispatcher, detachEventDispatcher, disconnected, errorOccurred, getEventDispatcher, getEvents, getEventValue, getId, getTunnel, ignoreEvents, isOpen, notifyEvent, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString, unIgnoreEvents, waitEventValue
protected List<Destination> dests
protected long readTimeout
public I2PTunnelClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) throws IllegalArgumentException
destinations
- comma delimited list of peers we targetIllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the routerpublic void setReadTimeout(long ms)
public long getReadTimeout()
protected void clientConnectionRun(Socket s)
I2PTunnelClientBase
clientConnectionRun
in class I2PTunnelClientBase