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() |
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
|
boolean isEnabled()
String getB32Hostname()
byte[] getLocalAddress()
int newOutgoing(byte[] ip, int port, String type)
ip
- local irc client IPport
- local irc client porttype
- stringint newIncoming(String b32, int port, String type)
b32
- remote dcc server b32 addressport
- remote dcc server I2P porttype
- stringint resumeOutgoing(int port)
port
- local DCC client tunnel portint resumeIncoming(int port)
port
- local dcc server I2P portint acceptOutgoing(int port)
port
- local irc client DCC portint acceptIncoming(int port)
port
- remote dcc server I2P port