public interface DCCHelper
| Modifier and Type | Method and Description |
|---|---|
int |
acceptIncoming(int port)
An incoming ACCEPT response
|
int |
acceptOutgoing(int port)
An outgoing ACCEPT response
|
String |
getB32Hostname()
String to put in the outgoing DCC
|
byte[] |
getLocalAddress()
Our IP address (taken from the socket), must be IPv4
|
boolean |
isEnabled()
Is the DCC helper enabled?
|
int |
newIncoming(String b32,
int port,
String type)
An incoming DCC request
|
int |
newOutgoing(byte[] ip,
int port,
String type)
An outgoing DCC request
|
int |
resumeIncoming(int port)
An incoming RESUME request
|
int |
resumeOutgoing(int port)
An outgoing RESUME request
|
int acceptIncoming(int port)
port - remote dcc server I2P portint acceptOutgoing(int port)
port - local irc client DCC portString getB32Hostname()
byte[] getLocalAddress()
boolean isEnabled()
int newIncoming(String b32, int port, String type)
b32 - remote dcc server b32 addressport - remote dcc server I2P porttype - stringint newOutgoing(byte[] ip,
int port,
String type)
ip - local irc client IPport - local irc client porttype - stringint resumeIncoming(int port)
port - local dcc server I2P portint resumeOutgoing(int port)
port - local DCC client tunnel port