java.lang.Object
org.freenetproject.DetectedIP
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
FieldsModifier and TypeFieldDescriptionstatic final shortFull cone NAT.static final shortFull internet access!intThe MTU as advertized by the JVMfinal shortThe NAT typestatic final shortNo UDP connectivity at allstatic final shortThe plugin does not support detecting the NAT type.static final shortPort restricted cone NAT.final InetAddressThe detected public IP addressstatic final shortRestricted cone NAT.static final shortSymmetric NAT.static final shortSymmetric UDP firewall.Constructor Summary
ConstructorsMethod Summary
Field Details
publicAddress
The detected public IP addressnatType
public final short natTypeThe NAT typemtu
public int mtuThe MTU as advertized by the JVMNOT_SUPPORTED
public static final short NOT_SUPPORTEDThe plugin does not support detecting the NAT type.- See Also:
FULL_INTERNET
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:
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:
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:
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:
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:
NO_UDP
Constructor Details
DetectedIP
Creates a new DetectedIP instance.- Parameters:
addr- the detected public IP addresstype- the NAT type
Method Details
equals
hashCode
toString