Runnable, EventDispatcherpublic class I2PTunnelDCCClient extends I2PTunnelClientBase
| Modifier and Type | Field | Description |
|---|---|---|
static String |
CONNECT_START_EVENT |
|
static String |
CONNECT_STOP_EVENT |
_clientId, _context, _log, _ownDest, dest, l, listenerReady, mySockets, PROP_USE_SSL, sockLock, sockMgr, ssopen| Constructor | Description |
|---|---|
I2PTunnelDCCClient(String dest,
int localPort,
int remotePort,
Logging l,
I2PSocketManager sktMgr,
EventDispatcher notifyThis,
I2PTunnel tunnel,
long clientId) |
As of 0.9.20 this is fast, and does NOT connect the manager to the router,
or open the local socket.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
clientConnectionRun(Socket s) |
Accept one connection only.
|
String |
getDest() |
|
long |
getExpires() |
|
int |
getRemotePort() |
|
void |
stop() |
Stop listening for new sockets.
|
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValueaddSubsession, buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, close, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, destroy, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killSharedClient, manageConnection, optionsUpdated, run, startRunning, verifySocketManagerconnected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringpublic static final String CONNECT_START_EVENT
public static final String CONNECT_STOP_EVENT
public I2PTunnelDCCClient(String dest, int localPort, int remotePort, Logging l, I2PSocketManager sktMgr, EventDispatcher notifyThis, I2PTunnel tunnel, long clientId) throws IllegalArgumentException
dest - the target, presumably b32localPort - if 0, use any port, get actual port selected with getLocalPort()IllegalArgumentException - if the I2PTunnel does not contain
valid config to contact the routerprotected void clientConnectionRun(Socket s)
clientConnectionRun in class I2PTunnelClientBasepublic long getExpires()
public String getDest()
public int getRemotePort()
public void stop()