EventDispatcher
public class I2PTunnelClient extends I2PTunnelClientBase
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected java.util.List<Destination> |
dests |
推奨されていません。
why protected? Is anybody using out-of-tree? Protected from the beginning (2004)
|
protected long |
readTimeout |
_clientId, _context, _log, _ownDest, DEFAULT_CONNECT_TIMEOUT, dest, l, listenerReady, mySockets, PROP_USE_SSL, sockLock, sockMgr, ss
open
コンストラクタ | 説明 |
---|---|
I2PTunnelClient(int localPort,
java.lang.String destinations,
Logging l,
boolean ownDest,
EventDispatcher notifyThis,
I2PTunnel tunnel,
java.lang.String pkf) |
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) |
Manage a connection in a separate thread.
|
boolean |
close(boolean forced) |
Overridden to unregister with port mapper
|
long |
getReadTimeout() |
|
void |
optionsUpdated(I2PTunnel tunnel) |
Update the dests then call super.
|
void |
setReadTimeout(long ms) |
|
void |
startRunning() |
Actually start working on incoming connections.
|
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue
addSubsession, buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, closeSocket, createI2PSocket, createI2PSocket, createI2PSocket, destroy, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, killSharedClient, manageConnection, run, verifySocketManager
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString
@Deprecated protected java.util.List<Destination> dests
protected long readTimeout
public I2PTunnelClient(int localPort, java.lang.String destinations, Logging l, boolean ownDest, EventDispatcher notifyThis, I2PTunnel tunnel, java.lang.String pkf) throws java.lang.IllegalArgumentException
destinations
- peers we target, comma- or space-separated. Since 0.9.9, each dest may be appended with :portjava.lang.IllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the routerpublic void setReadTimeout(long ms)
public long getReadTimeout()
protected void clientConnectionRun(java.net.Socket s)
I2PTunnelClientBase
clientConnectionRun
クラス内 I2PTunnelClientBase
public void optionsUpdated(I2PTunnel tunnel)
optionsUpdated
クラス内 I2PTunnelClientBase
public void startRunning()
startRunning
クラス内 I2PTunnelClientBase
public boolean close(boolean forced)
close
クラス内 I2PTunnelClientBase