[Tutor] Reading eth0 With Python
pythontutor at venix.com
Sat Nov 15 16:53:19 EST 2003
Python's device access is normally provided with C programs that
are managed through a Python interface. Python is usually too slow
to directly handle data from a fast device. Even a C program like
tcpdump has difficulty keeping up with a busy network connection.
Your best bet is probably to use tcpdump (or the equivalent) to store
the packets and use python to analyze the data.
Are you trying to communicate with or manage a device that doesn't
support TCP/IP (or some other higher-level protocol)?
Null Pointer wrote:
> Anyone know if it is possible to read Linux's eth0 device using
> Thanks, N.P.
> Tutor maillist - Tutor at python.org
1 Court Street, Suite 378
Lebanon, NH 03766-1358
More information about the Tutor