public class I2PTunnelDCCClient extends I2PTunnelClientBase
| Modifier and Type | Field and 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, tunnel| Constructor and 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 and Description |
|---|---|
protected void |
clientConnectionRun(Socket s)
Accept one connection only.
|
String |
getDest()
Returns the destination base32 address for this DCC connection.
|
long |
getExpires()
Returns the expiration time for this DCC connection.
|
int |
getRemotePort()
Returns the remote port for this DCC connection.
|
void |
stop()
Stop listening for new sockets.
|
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, getBooleanOption, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringattachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValuepublic 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 String getDest()
public long getExpires()
public int getRemotePort()
public void stop()