public class I2PTunnelIRCClient extends I2PTunnelClientBase
Modifier and Type | Field and Description |
---|---|
static String |
PROP_DCC |
protected long |
readTimeout |
_clientId, _context, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, listenerReady, mySockets, PROP_USE_SSL, sockLock, sockMgr, ss
open
Constructor and Description |
---|
I2PTunnelIRCClient(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.
|
boolean |
close(boolean forced) |
void |
optionsUpdated(I2PTunnel tunnel)
Update the dests then call super.
|
void |
startRunning()
Actually start working on incoming connections.
|
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, getClientExecutor, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killClientExecutor, manageConnection, run, verifySocketManager
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
protected long readTimeout
public static final String PROP_DCC
public I2PTunnelIRCClient(int localPort, String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, String pkf) throws IllegalArgumentException
destinations
- peers we target, comma- or space-separated. Since 0.9.9, each dest may be appended with :portIllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the routerprotected void clientConnectionRun(Socket s)
I2PTunnelClientBase
clientConnectionRun
in class I2PTunnelClientBase
public void optionsUpdated(I2PTunnel tunnel)
optionsUpdated
in class I2PTunnelClientBase
public void startRunning()
I2PTunnelClientBase
startRunning
in class I2PTunnelClientBase
public boolean close(boolean forced)
close
in class I2PTunnelClientBase