Package org.freenetproject
Class DetectedIP
java.lang.Object
org.freenetproject.DetectedIP
public class DetectedIP extends Object
Class returned by a FredPluginIPDetector.
Indicates:
- Whether there is no UDP connectivity at all.
- Whether there is full inbound IP connectivity.
- A list of detected public IPs.
-
Field Summary
Fields Modifier and Type Field Description static shortFULL_CONE_NATFull cone NAT.static shortFULL_INTERNETFull internet access!intmtuThe MTU as advertized by the JVMshortnatTypestatic shortNO_UDPNo UDP connectivity at allstatic shortNOT_SUPPORTEDThe plugin does not support detecting the NAT type.static shortPORT_RESTRICTED_NATPort restricted cone NAT.InetAddresspublicAddressstatic shortRESTRICTED_CONE_NATRestricted cone NAT.static shortSYMMETRIC_NATSymmetric NAT.static shortSYMMETRIC_UDP_FIREWALLSymmetric UDP firewall. -
Constructor Summary
Constructors Constructor Description DetectedIP(InetAddress addr, short type) -
Method Summary
-
Field Details
-
publicAddress
-
natType
public final short natType -
mtu
public int mtuThe MTU as advertized by the JVM -
NOT_SUPPORTED
public static final short NOT_SUPPORTEDThe plugin does not support detecting the NAT type.- See Also:
- Constant Field Values
-
FULL_INTERNET
public static final short FULL_INTERNETFull internet access!- See Also:
- Constant Field Values
-
FULL_CONE_NAT
public static final short FULL_CONE_NATFull cone NAT. Once we have sent a packet out on a port, any node anywhere can send us a packet on that port. The nicest option, but very rare unfortunately.- See Also:
- Constant Field Values
-
RESTRICTED_CONE_NAT
public static final short RESTRICTED_CONE_NATRestricted cone NAT. Once we have sent a packet out to a specific IP, it can send us packets on the port we just used.- See Also:
- Constant Field Values
-
PORT_RESTRICTED_NAT
public static final short PORT_RESTRICTED_NATPort restricted cone NAT. Once we have sent a packet to a specific IP+Port, that IP+Port can send us packets on the port we just used.- See Also:
- Constant Field Values
-
SYMMETRIC_NAT
public static final short SYMMETRIC_NATSymmetric NAT. Uses a separate port number for each IP+port ! Not much hope for symmetric to symmetric...- See Also:
- Constant Field Values
-
SYMMETRIC_UDP_FIREWALL
public static final short SYMMETRIC_UDP_FIREWALLSymmetric UDP firewall. We are not NATed, but the firewall behaves as if we were.- See Also:
- Constant Field Values
-
NO_UDP
public static final short NO_UDPNo UDP connectivity at all- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details