[Tutor] Reading eth0 With Python
Lloyd Kvam
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
> Python?
>
> Thanks, N.P.
>
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>
--
Lloyd Kvam
Venix Corp.
1 Court Street, Suite 378
Lebanon, NH 03766-1358
voice: 603-653-8139
fax: 801-459-9582
More information about the Tutor
mailing list