Newbie Question: How To Send Text Over Ethernet?

Irmen de Jong irmen at -NOSPAM-REMOVETHIS-xs4all.nl
Thu May 8 17:22:00 EDT 2003


John Branthoover wrote:
> Hello All,
> 
>      Can any one point to a simple example in Python on how to send simple
> text messages between two PCs connected together via Ethernet?

Ethernet is just the physical layer. (the "wire").
You need to tell us more about your situation.
What kind of messages? Using what protocol (likely: TCP/IP)?

But may I suggest the following:
For starters have a look at the Demo/sockets directory in
the Python source distribution, there are several examples
that show how to connect using TCP, UDP, etc...

If you want a very high level abstraction, have a look
at Pyro (http://pyro.sourceforge.net)...


--Irmen





More information about the Python-list mailing list