nsINetAddr
This interface represents a native NetAddr struct in a readonly
interface.
the underlying NetAddr struct. |
@return the address family of the network address, which corresponds to
one of the FAMILY_ constants.
@return Either the IP address (FAMILY_INET, FAMILY_INET6) or the path
(FAMILY_LOCAL) in string form. IP addresses are in the format produced by
mozilla::net::NetAddrToString.
Note: Paths for FAMILY_LOCAL may have length limitations which are
implementation dependent and not documented as part of this interface.
@return the port number for a FAMILY_INET or FAMILY_INET6 address.
@throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET or
FAMILY_INET6.
@return the flow label for a FAMILY_INET6 address.
@see http://www.ietf.org/rfc/rfc3697.txt
@throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET6
@return the address scope of a FAMILY_INET6 address.
@see http://tools.ietf.org/html/rfc4007
@throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET6
@return whether a FAMILY_INET6 address is mapped from FAMILY_INET.
@throws NS_ERROR_NOT_AVAILABLE if the address family is not FAMILY_INET6
Network address families. These correspond to all the network address
families supported by the NetAddr struct.