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

Type route

object --+
         |
        route


route() -> Routing table object

Open a handle to the system routing table.

Method Summary
  __init__(...)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature...
  __iter__(x)
x.__iter__() <==> iter(x)...
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T...
  add(...)
Add an entry to the system routing table.
  delete(...)
Delete an entry from the system routing table.
  get(...)
Return the hardware address for a given protocol address in the system routing table.
  loop(...)
Iterate over the system routing table, invoking a user callback with each entry, returning the status of the callback routine.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name...
  __getattribute__(...)
x.__getattribute__('name') <==> x.name...
  __hash__(x)
x.__hash__() <==> hash(x)...
  __reduce__(...)
helper for pickle...
  __reduce_ex__(...)
helper for pickle...
  __repr__(x)
x.__repr__() <==> repr(x)...
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value...
  __str__(x)
x.__str__() <==> str(x)...

Method Details

__init__(...)
(Constructor)

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

__iter__(x)

x.__iter__() <==> iter(x)
Returns:
iter(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__

add(...)

Add an entry to the system routing table.

Arguments:
dst -- ADDR_TYPE_IP network address object
gw -- ADDR_TYPE_IP network address object

delete(...)

Delete an entry from the system routing table.

Arguments:
dst -- ADDR_TYPE_IP network address object

get(...)

Return the hardware address for a given protocol address
in the system routing table.

Arguments:
dst -- ADDR_TYPE_IP network address object

loop(...)

Iterate over the system routing table, invoking a user callback
with each entry, returning the status of the callback routine.

Keyword arguments:
callback -- callback function with ((dst, gw), arg) prototype.
            If this function returns a non-zero value, the loop
            will break early.
arg      -- optional callback argument

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