Package dns :: Module inet
[show private | hide private]
[frames | no frames]

Module dns.inet

Generic Internet address helper functions.
Function Summary
string inet_ntop(family, address)
Convert the binary form of a network address into its textual form.
string inet_pton(family, text)
Convert the textual form of a network address into its binary form.

Variable Summary
int AF_INET
int AF_INET6

Function Details

inet_ntop(family, address)

Convert the binary form of a network address into its textual form.
Parameters:
family - the address family
           (type=int)
address - the binary address
           (type=string)
Returns:
string
Raises:
NotImplementedError - the address family specified is not implemented.

inet_pton(family, text)

Convert the textual form of a network address into its binary form.
Parameters:
family - the address family
           (type=int)
text - the textual address
           (type=string)
Returns:
string
Raises:
NotImplementedError - the address family specified is not implemented.

Variable Details

AF_INET

Type:
int
Value:
2                                                                      

AF_INET6

Type:
int
Value:
10                                                                     

Generated by Epydoc 1.1 on Wed Jul 30 23:38:03 2003 http://epydoc.sf.net