Package dns :: Module ipv4
[hide private]
[frames] | no frames]

Module ipv4

source code

IPv4 helper functions.

Functions [hide private]
 
inet_ntoa(address)
Convert an IPv4 address in binary form to text form.
source code
 
inet_aton(text)
Convert an IPv4 address in text form to binary form.
source code
Variables [hide private]
  __package__ = 'dns'
Function Details [hide private]

inet_ntoa(address)

source code 

Convert an IPv4 address in binary form to text form.

*address*, a ``binary``, the IPv4 address in binary form.

Returns a ``text``.

inet_aton(text)

source code 

Convert an IPv4 address in text form to binary form.

*text*, a ``text``, the IPv4 address in textual form.

Returns a ``binary``.