|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.util.EventDispatcherImpl
net.i2p.i2ptunnel.I2PTunnelTask
net.i2p.i2ptunnel.I2PTunnelServer
net.i2p.i2ptunnel.irc.I2PTunnelDCCServer
public class I2PTunnelDCCServer
A standard server that only answers for registered ports, and each port can only be used once.
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 ----->
Field Summary |
---|
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelServer |
---|
__serverId, _clientExecutor, _log, bidir, i2pss, l, localPort, PROP_UNIQUE_LOCAL, PROP_USE_SSL, readTimeout, remoteHost, remotePort, slock, sockMgr, sslLock, task |
Fields inherited from class net.i2p.i2ptunnel.I2PTunnelTask |
---|
open |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
Note that the tunnel can be reopened after this by calling startRunning(). |
int |
newOutgoing(byte[] ip,
int port,
String type)
An outgoing DCC request |
int |
resumeIncoming(int port)
An incoming RESUME request |
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelServer |
---|
destroy, getHandlerCount, getReadTimeout, getSocket, getSocket, optionsUpdated, run, setReadTimeout, shouldUsePool, startRunning |
Methods inherited from class net.i2p.i2ptunnel.I2PTunnelTask |
---|
connected, disconnected, errorOccurred, getId, getTunnel, isOpen, reportAbuse, routerDisconnected, setId, setName, setTunnel, toString |
Methods inherited from class net.i2p.util.EventDispatcherImpl |
---|
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, notifyEvent, unIgnoreEvents, waitEventValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public I2PTunnelDCCServer(I2PSocketManager sktMgr, Logging l, EventDispatcher notifyThis, I2PTunnel tunnel)
sktMgr
- an existing socket manager
IllegalArgumentException
- if the I2PTunnel does not contain
valid config to contact the routerMethod Detail |
---|
protected void blockingHandle(I2PSocket socket)
blockingHandle
in class I2PTunnelServer
public boolean close(boolean forced)
I2PTunnelServer
close
in class I2PTunnelServer
public int newOutgoing(byte[] ip, int port, String type)
ip
- local irc client IPport
- local irc client porttype
- ignored
public int resumeIncoming(int port)
port
- local dcc server I2P port
public int acceptOutgoing(int port)
port
- local irc client DCC port
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |