[show private | hide private]

iplib
Class iplib.IpNetMask


A CIDR netmask.

This class represents a CIDR netmask.
Method Summary
  __init__(self, nm)
  get(self)
Return the netmask.
  get_bin(self)
Return the binary notation of the netmask.
  get_dec(self)
Return the decimal notation of the netmask.
  get_dot(self)
Return the dotted decimal notation of the netmask.
  set(self, nm)
Set the netmask.

Method Details

Constructor

__init__(self, nm='')

get

get(self)

Return the netmask.

get_bin

get_bin(self)

Return the binary notation of the netmask.

get_dec

get_dec(self)

Return the decimal notation of the netmask.

get_dot

get_dot(self)

Return the dotted decimal notation of the netmask.

set

set(self, nm)

Set the netmask.

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