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

Module dns.inet

Generic Internet address helper functions.
Function Summary
  af_for_address(text)
Determine the address family of a textual-form network address.
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 = 2                                                                     

Function Details

af_for_address(text)

Determine the address family of a textual-form network address.
Parameters:
text - the textual address
           (type=string)
Raises:
ValueError - the address family cannot be determined from the input. @rtype int

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                                                                     

Generated by Epydoc 2.1 on Sun Jul 31 21:35:42 2005 http://epydoc.sf.net