net.i2p.i2ptunnel
Class I2PTunnelIRCClient
java.lang.Object
net.i2p.util.EventDispatcherImpl
net.i2p.i2ptunnel.I2PTunnelTask
net.i2p.i2ptunnel.I2PTunnelClientBase
net.i2p.i2ptunnel.I2PTunnelIRCClient
- All Implemented Interfaces:
- Runnable, EventDispatcher
public class I2PTunnelIRCClient
- extends I2PTunnelClientBase
Todo: Can we extend I2PTunnelClient instead and remove some duplicated code?
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase |
_clientId, _context, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, mySockets, sockLock, sockMgr, ss |
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase |
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, getClientExecutor, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killClientExecutor, manageConnection, optionsUpdated, run, verifySocketManager |
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelTask |
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString |
dests
protected List<Destination> dests
- list of Destination objects that we point at
readTimeout
protected long readTimeout
PROP_DCC
public static final String PROP_DCC
- Since:
- 0.8.9
- See Also:
- Constant Field Values
I2PTunnelIRCClient
public I2PTunnelIRCClient(int localPort,
String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
String pkf)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the router
clientConnectionRun
protected void clientConnectionRun(Socket s)
- Description copied from class:
I2PTunnelClientBase
- Manage a connection in a separate thread. This only works if
you do not override manageConnection()
- Specified by:
clientConnectionRun
in class I2PTunnelClientBase
startRunning
public void startRunning()
- Description copied from class:
I2PTunnelClientBase
- Actually start working on incoming connections. *Must* be
called by derived classes after initialization.
- Overrides:
startRunning
in class I2PTunnelClientBase
close
public boolean close(boolean forced)
- Overrides:
close
in class I2PTunnelClientBase