Introduction to Socket Programming on Python

Irmen de Jong irmen at
Wed Feb 26 15:56:19 CET 2003

bob wrote:
> Can anyone recommend a good online introduction (with plenty of
> examples) to socket programming in Python?
> I've looked at the Socket HOWTO, but it moves quite quickly and
> doesn't have a lot of hands programming in it.

I'm afraid that if the Socket HOWTO isn't of much help to you,
and you have no prior experience with (BSD) socket programming,
you'll find that programming raw sockets is no simple task.

Are you sure you don't want to use a toolkit that shields the
raw socket API from your program, and instead provides a
high-level Pythonic programming interface?

[ Shameless plug for Pyro;
There are also many other tools such as Medusa or Twisted ]

Otherwise, I can't really help you with Python-specific socket examples
other than the socket howto and the examples/demos that come with Python.

Perhaps Google can help?

Good luck!

Irmen de Jong.

More information about the Python-list mailing list