net.i2p.i2ptunnel.irc
Class I2PTunnelDCCClient
java.lang.Object
net.i2p.util.EventDispatcherImpl
net.i2p.i2ptunnel.I2PTunnelTask
net.i2p.i2ptunnel.I2PTunnelClientBase
net.i2p.i2ptunnel.irc.I2PTunnelDCCClient
- All Implemented Interfaces:
- Runnable, EventDispatcher
public class I2PTunnelDCCClient
- extends I2PTunnelClientBase
A standard client, using an existing socket manager.
Targets a single destination and port.
Naming resolution is delayed until connect time.
- Since:
- 0.8.9
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelClientBase |
buildSocketManager, buildSocketManager, buildSocketManager, buildSocketManager, close, closeSocket, createI2PSocket, createI2PSocket, getDefaultOptions, getDefaultOptions, getListenHost, getLocalPort, getSocketManager, getSocketManager, getSocketManager, manageConnection, optionsUpdated, run, startRunning, verifySocketManager |
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelTask |
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString |
CONNECT_START_EVENT
public static final String CONNECT_START_EVENT
- See Also:
- Constant Field Values
CONNECT_STOP_EVENT
public static final String CONNECT_STOP_EVENT
- See Also:
- Constant Field Values
I2PTunnelDCCClient
public I2PTunnelDCCClient(String dest,
int localPort,
int remotePort,
Logging l,
I2PSocketManager sktMgr,
EventDispatcher notifyThis,
I2PTunnel tunnel,
long clientId)
throws IllegalArgumentException
- Parameters:
dest
- the target, presumably b32localPort
- if 0, use any port, get actual port selected with getLocalPort()
- Throws:
IllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the router
clientConnectionRun
protected void clientConnectionRun(Socket s)
- Accept one connection only.
- Specified by:
clientConnectionRun
in class I2PTunnelClientBase
getExpires
public long getExpires()
getDest
public String getDest()
getRemotePort
public int getRemotePort()
stop
public void stop()
- Stop listening for new sockets.
We can't call super.close() as it kills all sockets in the sockMgr