Class ForwardPort

java.lang.Object
org.freenetproject.ForwardPort
Direct Known Subclasses:
UPnP.IPv6ForwardPort

public class ForwardPort extends Object
A public Internet Protocol port on the node which needs to be forwarded if the node is NATed.
Author:
toad
  • Field Details

    • name

      public final String name
      Name of the interface e.g. "opennet"
    • isIP6

      public final boolean isIP6
      IPv4 vs IPv6?
    • protocol

      public final int protocol
      Protocol number. See constants.
    • PROTOCOL_UDP_IPV4

      public static final int PROTOCOL_UDP_IPV4
      See Also:
    • PROTOCOL_TCP_IPV4

      public static final int PROTOCOL_TCP_IPV4
      See Also:
    • portNumber

      public final int portNumber
      Port number to forward
  • Constructor Details

    • ForwardPort

      public ForwardPort(String name, boolean isIP6, int protocol, int portNumber)
  • Method Details