EventDispatcher
public class I2PTunnelDCCClient extends I2PTunnelClientBase
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static java.lang.String |
CONNECT_START_EVENT |
|
static java.lang.String |
CONNECT_STOP_EVENT |
_clientId, _context, _log, _ownDest, dest, l, listenerReady, mySockets, PROP_USE_SSL, sockLock, sockMgr, ss
open
コンストラクタ | 説明 |
---|---|
I2PTunnelDCCClient(java.lang.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.
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
protected void |
clientConnectionRun(java.net.Socket s) |
Accept one connection only.
|
java.lang.String |
getDest() |
|
long |
getExpires() |
|
int |
getRemotePort() |
|
void |
stop() |
Stop listening for new sockets.
|
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
addSubsession, buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, close, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, destroy, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killSharedClient, manageConnection, optionsUpdated, run, startRunning, verifySocketManager
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
public static final java.lang.String CONNECT_START_EVENT
public static final java.lang.String CONNECT_STOP_EVENT
public I2PTunnelDCCClient(java.lang.String dest, int localPort, int remotePort, Logging l, I2PSocketManager sktMgr, EventDispatcher notifyThis, I2PTunnel tunnel, long clientId) throws java.lang.IllegalArgumentException
dest
- the target, presumably b32localPort
- if 0, use any port, get actual port selected with getLocalPort()java.lang.IllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the routerprotected void clientConnectionRun(java.net.Socket s)
clientConnectionRun
クラス内 I2PTunnelClientBase
public long getExpires()
public java.lang.String getDest()
public int getRemotePort()
public void stop()