Home | Trees | Index | Help |
---|
Module dnet :: Class intf |
|
object
--+
|
intf
intf() -> Interface table object Open a handle to the system network interface table.
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature... | |
x.__iter__() <==> iter(x)... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
Return the configuration for a network interface as a dict. | |
Return the configuration for the best interface with which to reach the specified dst address. | |
Return the configuration for the interface whose primary address matches the specified source address. | |
Iterate over the system interface table, invoking a user callback with each entry, returning the status of the callback routine. | |
Set the configuration for an interface from a dict. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name... | |
x.__getattribute__('name') <==> x.name... | |
x.__hash__() <==> hash(x)... | |
helper for pickle... | |
helper for pickle... | |
x.__repr__() <==> repr(x)... | |
x.__setattr__('name', value) <==> x.name = value... | |
x.__str__() <==> str(x)... |
Method Details |
---|
__init__(...)
|
__iter__(x)x.__iter__() <==> iter(x)
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
get(...)Return the configuration for a network interface as a dict. |
get_dst(...)Return the configuration for the best interface with which to reach the specified dst address. |
get_src(...)Return the configuration for the interface whose primary address matches the specified source address. |
loop(...)Iterate over the system interface table, invoking a user callback with each entry, returning the status of the callback routine. Keyword arguments: callback -- callback function with (dict, arg) prototype. If this function returns a non-zero value, the loop will break early. arg -- optional callback argument |
set(...)Set the configuration for an interface from a dict. Dict values: name -- name of interface to set (string) flags -- interface flags (INTF_FLAG_*) (integer bitmask) mtu -- interface MTU (integer) addr -- primary network address (addr object) dst_addr -- point-to-point dst address (addr object) link_addr -- link-layer address (addr object) alias_addrs -- additional network addresses (list of addr objects) |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jan 19 13:24:11 2006 | http://epydoc.sf.net |