Home | Trees | Indices | Help |
|
---|
|
object --+ | Addr
The base class containing common functionality for all subclasses representing various network address types.
It is a fully functioning class (as opposed to a virtual class) with a heuristic constructor that detects the type of address via the first argument if it is a string and sets itself up accordingly. If the first argument is an integer, then a constant must be provided via the second argument indicating the address type explicitly.
Objects of this class behave differently dependent upon the type of address they represent.
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Class Variables | |
STRATEGIES =
|
|
ADDR_TYPES =
|
|
value = AddrValueDescriptor('value')
|
|
strategy = StrategyDescriptor(STRATEGIES)
|
|
addr_type = AddrTypeDescriptor(ADDR_TYPES)
|
Properties | |
Inherited from |
Method Details |
Constructor.
|
hash(x)
|
|
|
str(x)
|
repr(x)
|
|
|
|
|
|
Increments network address by specified value. If the result exceeds address type maximum, it rolls around the minimum boundary. |
Decrements network address by specified value. If the result exceeds address type minimum, it rolls around the maximum boundary. |
|
|
|
|
|
|
Class Variable Details |
STRATEGIES
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 29 23:23:23 2008 | http://epydoc.sourceforge.net |