org.freenetproject
Class ForwardPort

java.lang.Object
  extended by org.freenetproject.ForwardPort

public class ForwardPort
extends java.lang.Object

A public Internet Protocol port on the node which needs to be forwarded if the node is NATed.

Author:
toad

Field Summary
 boolean isIP6
          IPv4 vs IPv6?
 java.lang.String name
          Name of the interface e.g.
 int portNumber
          Port number to forward
 int protocol
          Protocol number.
static int PROTOCOL_TCP_IPV4
           
static int PROTOCOL_UDP_IPV4
           
 
Constructor Summary
ForwardPort(java.lang.String name, boolean isIP6, int protocol, int portNumber)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public final java.lang.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:
Constant Field Values

PROTOCOL_TCP_IPV4

public static final int PROTOCOL_TCP_IPV4
See Also:
Constant Field Values

portNumber

public final int portNumber
Port number to forward

Constructor Detail

ForwardPort

public ForwardPort(java.lang.String name,
                   boolean isIP6,
                   int protocol,
                   int portNumber)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object