Package net.i2p.i2ptunnel.irc
Class DCCClientManager
java.lang.Object
net.i2p.i2ptunnel.irc.EventReceiver
net.i2p.i2ptunnel.irc.DCCClientManager
- All Implemented Interfaces:
EventDispatcher
Start, track, and expire the I2PTunnelDCCClients.
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 ----->
- Since:
- 0.8.9
-
Constructor Summary
ConstructorDescriptionDCCClientManager
(I2PSocketManager sktMgr, Logging logging, EventDispatcher dispatch, I2PTunnel tunnel) -
Method Summary
Modifier and TypeMethodDescriptionint
acceptIncoming
(int port) An incoming ACCEPT responseboolean
close
(boolean forced) int
newIncoming
(String b32, int port, String type) An incoming DCC requestvoid
notifyEvent
(String eventName, Object args) The EventReceiver callbackint
resumeOutgoing
(int port) An outgoing RESUME requestMethods inherited from class net.i2p.i2ptunnel.irc.EventReceiver
attachEventDispatcher, detachEventDispatcher, getEventDispatcher, getEvents, getEventValue, ignoreEvents, unIgnoreEvents, waitEventValue
-
Constructor Details
-
DCCClientManager
public DCCClientManager(I2PSocketManager sktMgr, Logging logging, EventDispatcher dispatch, I2PTunnel tunnel)
-
-
Method Details
-
close
public boolean close(boolean forced) -
newIncoming
An incoming DCC request- Parameters:
b32
- remote dcc server b32 addressport
- remote dcc server I2P porttype
- ignored- Returns:
- local DCC client tunnel port or -1 on error
-
resumeOutgoing
public int resumeOutgoing(int port) An outgoing RESUME request- Parameters:
port
- local DCC client tunnel port- Returns:
- remote DCC server i2p port or -1 on error
-
acceptIncoming
public int acceptIncoming(int port) An incoming ACCEPT response- Parameters:
port
- remote dcc server I2P port- Returns:
- local DCC client tunnel port or -1 on error
-
notifyEvent
The EventReceiver callback- Specified by:
notifyEvent
in interfaceEventDispatcher
- Specified by:
notifyEvent
in classEventReceiver
- Parameters:
eventName
- name of the eventargs
- data being stored for that event
-