Home | Trees | Index | Help |
---|
Module dnet :: Class eth |
|
object
--+
|
eth
eth(device) -> Ethernet device object Open the specified Ethernet device for sending.
Method Summary | |
---|---|
x.__init__(...) initializes x; see x.__class__.__doc__ for signature... | |
T.__new__(S, ...) -> a new object with type S, a subtype of T... | |
Return the MAC address associated with the device as a binary string. | |
Send an Ethernet frame, returning the number of bytes sent or -1 on failure. | |
Set the MAC address for the device, returning 0 on success, -1 on failure. | |
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__(...)
|
__new__(T, S, ...)T.__new__(S, ...) -> a new object with type S, a subtype of T
|
get(...)Return the MAC address associated with the device as a binary string. |
send(...)Send an Ethernet frame, returning the number of bytes sent or -1 on failure. Arguments: frame -- binary string representing an Ethernet frame |
set(...)Set the MAC address for the device, returning 0 on success, -1 on failure. Arguments: eth_addr -- 6-byte binary string (e.g. '\x00\xde\xad\xbe\xef\x00') |
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Thu Jan 19 13:24:11 2006 | http://epydoc.sf.net |