Interface DCCHelper


public interface DCCHelper
Hooks to create and maintain DCC client and server tunnels
Since:
0.8.9
  • 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

      int newOutgoing(byte[] ip, int port, String type)
      An outgoing DCC request
      Parameters:
      ip - local irc client IP
      port - local irc client port
      type - string
      Returns:
      local DCC server i2p port or -1 on error
    • newIncoming

      int newIncoming(String b32, int port, String type)
      An incoming DCC request
      Parameters:
      b32 - remote dcc server b32 address
      port - remote dcc server I2P port
      type - 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