Home | Trees | Indices | Help |
|
---|
|
Generic Internet address helper functions.
|
|||
|
|||
|
|||
|
|||
|
|
|||
AF_INET = 2
|
|||
AF_INET6 = 30
|
|||
__package__ =
|
|
Convert the textual form of a network address into its binary form. *family* is an ``int``, the address family. *text* is a ``text``, the textual address. Raises ``NotImplementedError`` if the address family specified is not implemented. Returns a ``binary``. |
Convert the binary form of a network address into its textual form. *family* is an ``int``, the address family. *address* is a ``binary``, the network address in binary form. Raises ``NotImplementedError`` if the address family specified is not implemented. Returns a ``text``. |
Determine the address family of a textual-form network address. *text*, a ``text``, the textual address. Raises ``ValueError`` if the address family cannot be determined from the input. Returns an ``int``. |
Is the textual-form network address a multicast address? *text*, a ``text``, the textual address. Raises ``ValueError`` if the address family cannot be determined from the input. Returns a ``bool``. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sat Dec 8 10:59:54 2018 | http://epydoc.sourceforge.net |