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, ss
open
Constructor and Description |
---|
I2PTunnelDCCClient(String dest,
int localPort,
int remotePort,
Logging l,
I2PSocketManager sktMgr,
EventDispatcher notifyThis,
I2PTunnel tunnel,
long clientId) |
Modifier and Type | Method and Description |
---|---|
protected void |
clientConnectionRun(Socket s)
Accept one connection only.
|
String |
getDest() |
long |
getExpires() |
int |
getRemotePort() |
void |
stop()
Stop listening for new sockets.
|
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, close, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, manageConnection, optionsUpdated, run, startRunning, verifySocketManager
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
public 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 I2PTunnelClientBase
public long getExpires()
public String getDest()
public int getRemotePort()
public void stop()