This class represents an IPv4 Internet address.
Methods
|
|
__init__
get
get_bin
get_dec
get_dot
get_hex
get_oct
set
|
|
__init__
|
__init__ ( self, ip='' )
|
|
get
|
get ( self )
Return the address.
|
|
get_bin
|
get_bin ( self )
Return the binary notation of the address.
|
|
get_dec
|
get_dec ( self )
Return the decimal notation of the address.
|
|
get_dot
|
get_dot ( self )
Return the dotted decimal notation of the address.
|
|
get_hex
|
get_hex ( self )
Return the hexadecimal notation of the address.
|
|
get_oct
|
get_oct ( self )
Return the octal notation of the address.
|
|
set
|
set ( self, ip )
Set the IP address.
|