Package netaddr :: Module fallback
[hide private]
[frames] | no frames]

Module fallback

source code

A module containing pure-Python implementations of certain socket module constants and functions. Useful on some platforms or Python interpreters where they may be missing for various reasons.

Functions [hide private]
 
inet_ntoa(packed_ip)
Convert an IP address from 32-bit packed binary format to string format.
source code
 
inet_aton(ip_string)
Convert an IP address in string format (123.45.67.89) to the 32-bit packed binary format used in low-level network functions.
source code
 
_compact_ipv6_tokens(tokens) source code
 
inet_ntop(af, packed_ip)
Convert an packed IP address of the given family to string format.
source code
 
inet_pton(af, ip_string)
Convert an IP address from string format to a packed string suitable for use with low-level network functions.
source code
Variables [hide private]
  AF_UNSPEC = 0
  AF_INET = 2
  AF_INET6 = 10