Module dnet :: Class addr
[show private | hide private]
[frames | no frames]

Type addr

object --+
         |
        addr


addr(addrtxt=None, type=ADDR_TYPE_NONE) -> network address object

Create a network address object, optionally initialized from a
human-readable Ethernet, IP, or IPv6 address string.

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature...
  __add__(x, y)
x.__add__(y) <==> x+y...
  __cmp__(x, y)
x.__cmp__(y) <==> cmp(x,y)...
  __contains__(x, y)
x.__contains__(y) <==> y in x...
  __copy__(...)
  __hash__(x)
x.__hash__() <==> hash(x)...
  __int__(x)
x.__int__() <==> int(x)...
  __iter__(x)
x.__iter__() <==> iter(x)...
  __long__(x)
x.__long__() <==> long(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  __radd__(x, y)
x.__radd__(y) <==> y+x...
  __repr__(x)
x.__repr__() <==> repr(x)...
  bcast(...)
Return an addr object for our broadcast address.
  net(...)
Return an addr object for our network address.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Class Variable Summary
getset_descriptor bits = <attribute 'bits' of 'dnet.addr' objects>
getset_descriptor data = <attribute 'data' of 'dnet.addr' objects>
getset_descriptor eth = <attribute 'eth' of 'dnet.addr' objects>
getset_descriptor ip = <attribute 'ip' of 'dnet.addr' objects>
getset_descriptor ip6 = <attribute 'ip6' of 'dnet.addr' objects>
getset_descriptor type = <attribute 'type' of 'dnet.addr' objects>

Method Details

__init__(...)
(Constructor)

x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides:
__builtin__.object.__init__

__add__(x, y)
(Addition operator)

x.__add__(y) <==> x+y
Returns:
x+y

__cmp__(x, y)
(Comparison operator)

x.__cmp__(y) <==> cmp(x,y)
Returns:
cmp(x,y)

__contains__(x, y)
(In operator)

x.__contains__(y) <==> y in x
Returns:
y in x

__hash__(x)
(Hashing function)

x.__hash__() <==> hash(x)
Returns:
hash(x)
Overrides:
__builtin__.object.__hash__

__int__(x)

x.__int__() <==> int(x)
Returns:
int(x)

__iter__(x)

x.__iter__() <==> iter(x)
Returns:
iter(x)

__long__(x)

x.__long__() <==> long(x)
Returns:
long(x)

__new__(T, S, ...)

T.__new__(S, ...) -> a new object with type S, a subtype of T
Returns:
a new object with type S, a subtype of T
Overrides:
__builtin__.object.__new__

__radd__(x, y)
(Right-side addition operator)

x.__radd__(y) <==> y+x
Returns:
y+x

__repr__(x)
(Representation operator)

x.__repr__() <==> repr(x)
Returns:
repr(x)
Overrides:
__builtin__.object.__repr__

bcast(...)

Return an addr object for our broadcast address.

net(...)

Return an addr object for our network address.

Class Variable Details

bits

Type:
getset_descriptor
Value:
<attribute 'bits' of 'dnet.addr' objects>                              

data

Type:
getset_descriptor
Value:
<attribute 'data' of 'dnet.addr' objects>                              

eth

Type:
getset_descriptor
Value:
<attribute 'eth' of 'dnet.addr' objects>                               

ip

Type:
getset_descriptor
Value:
<attribute 'ip' of 'dnet.addr' objects>                                

ip6

Type:
getset_descriptor
Value:
<attribute 'ip6' of 'dnet.addr' objects>                               

type

Type:
getset_descriptor
Value:
<attribute 'type' of 'dnet.addr' objects>                              

Generated by Epydoc 2.1 on Thu Jan 19 13:24:11 2006 http://epydoc.sf.net