Package com.google.common.net
Class InetAddresses.TeredoInfo
- java.lang.Object
- 
- com.google.common.net.InetAddresses.TeredoInfo
 
- 
- Enclosing class:
- InetAddresses
 
 public static final class InetAddresses.TeredoInfo extends Object A simple immutable data class to encapsulate the information to be found in a Teredo address.All of the fields in this class are encoded in various portions of the IPv6 address as part of the protocol. More protocols details can be found at: http://en.wikipedia. org/wiki/Teredo_tunneling. The RFC can be found here: RFC 4380. - Since:
- 5.0
 
- 
- 
Constructor SummaryConstructors Constructor Description TeredoInfo(Inet4Address server, Inet4Address client, int port, int flags)Constructs a TeredoInfo instance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Inet4AddressgetClient()intgetFlags()intgetPort()Inet4AddressgetServer()
 
- 
- 
- 
Constructor Detail- 
TeredoInfopublic TeredoInfo(@CheckForNull Inet4Address server, @CheckForNull Inet4Address client, int port, int flags) Constructs a TeredoInfo instance.Both server and client can be null, in which case the value"0.0.0.0"will be assumed.- Throws:
- IllegalArgumentException- if either of the- portor the- flagsarguments are out of range of an unsigned short
 
 
- 
 - 
Method Detail- 
getServerpublic Inet4Address getServer() 
 - 
getClientpublic Inet4Address getClient() 
 - 
getPortpublic int getPort() 
 - 
getFlagspublic int getFlags() 
 
- 
 
-