Package net.i2p.i2ptunnel.irc
Interface DCCHelper
public interface DCCHelper
Hooks to create and maintain DCC client and server tunnels
- Since:
- 0.8.9
-
Method Summary
Modifier and TypeMethodDescriptionint
acceptIncoming
(int port) An incoming ACCEPT responseint
acceptOutgoing
(int port) An outgoing ACCEPT responseString to put in the outgoing DCCbyte[]
Our IP address (taken from the socket), must be IPv4boolean
int
newIncoming
(String b32, int port, String type) An incoming DCC requestint
newOutgoing
(byte[] ip, int port, String type) An outgoing DCC requestint
resumeIncoming
(int port) An incoming RESUME requestint
resumeOutgoing
(int port) An outgoing RESUME request
-
Method Details
-
isEnabled
boolean isEnabled() -
getB32Hostname
String getB32Hostname()String to put in the outgoing DCC -
getLocalAddress
byte[] getLocalAddress()Our IP address (taken from the socket), must be IPv4 -
newOutgoing
An outgoing DCC request- Parameters:
ip
- local irc client IPport
- local irc client porttype
- string- Returns:
- local DCC server i2p port or -1 on error
-
newIncoming
An incoming DCC request- Parameters:
b32
- remote dcc server b32 addressport
- remote dcc server I2P porttype
- string- Returns:
- local DCC client tunnel port or -1 on error
-
resumeOutgoing
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
-
resumeIncoming
int resumeIncoming(int port) An incoming RESUME request- Parameters:
port
- local dcc server I2P port- Returns:
- local IRC client DCC port or -1 on error
-
acceptOutgoing
int acceptOutgoing(int port) An outgoing ACCEPT response- Parameters:
port
- local irc client DCC port- Returns:
- local DCC server i2p port or -1 on error
-
acceptIncoming
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
-