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.
|
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
|
|
|
|
|
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
|
|