public class I2PTunnelDCCServer extends I2PTunnelServer
direct conn
<---> I2PTunnelDCCServer <--------------->I2PTunnelDCCClient <---->
originating responding
chat client chat client
CHAT ---> I2PTunnelIRCClient --> IRC server --> I2TunnelIRCClient ----->
SEND ---> I2PTunnelIRCClient --> IRC server --> I2TunnelIRCClient ----->
RESUME <--- I2PTunnelIRCClient <-- IRC server <-- I2TunnelIRCClient <-----
ACCEPT ---> I2PTunnelIRCClient --> IRC server --> I2TunnelIRCClient ----->
__serverId, _clientExecutor, _log, bidir, i2pss, l, localPort, PROP_ALT_PKF, PROP_UNIQUE_LOCAL, PROP_USE_SSL, readTimeout, remoteHost, remotePort, slock, sockMgr, sslLock, taskopen, tunnel| Constructor and Description |
|---|
I2PTunnelDCCServer(I2PSocketManager sktMgr,
Logging l,
EventDispatcher notifyThis,
I2PTunnel tunnel)There's no support for unsolicited incoming I2P connections,
so there's no server host or port parameters. |
| Modifier and Type | Method and Description |
|---|---|
int | acceptOutgoing(int port)An outgoing ACCEPT response |
protected void | blockingHandle(I2PSocket socket)An incoming DCC connection, only accept for a known port. |
boolean | close(boolean forced)Closes all connections and clears all pending/outgoing/active maps. |
int | newOutgoing(byte[] ip,
int port,
String type)An outgoing DCC request |
int | resumeIncoming(int port)An incoming RESUME request |
destroy, getReadTimeout, getSocket, getSocket, getSocketManager, getSocketString, optionsUpdated, run, setReadTimeout, startRunningconnected, disconnected, errorOccurred, getBooleanOption, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toStringattachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValuepublic I2PTunnelDCCServer(I2PSocketManager sktMgr, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel)
sktMgr - an existing socket managerIllegalArgumentException - if the I2PTunnel does not contain
valid config to contact the routerpublic int acceptOutgoing(int port)
port - local irc client DCC portprotected void blockingHandle(I2PSocket socket)
blockingHandle in class I2PTunnelServersocket - the incoming I2P socket connectionI2PTunnelServer.getSocket(Hash, int),
I2PTunnelRunnerpublic boolean close(boolean forced)
close in class I2PTunnelServerforced - unused, for interface compatibilitypublic int newOutgoing(byte[] ip,
int port,
String type)ip - local irc client IPport - local irc client porttype - ignoredpublic int resumeIncoming(int port)
port - local dcc server I2P port