[show private | hide private]

iplib
Class iplib.IpAddress


An IPv4 Internet address.

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

Method Details

Constructor

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

Generated by Epydoc on Fri Oct 4 14:00:40 2002 http://epydoc.sf.net