Writing a TCP/IP chat server

Ian Partridge iop199 at ecs.soton.ac.uk
Thu Apr 10 20:10:38 CEST 2003


Hi,

I am trying to write a chat server, which users will telnet to in order to 
interact with each other.

What is the best way to do this?

I have searched the web and found three different approaches:

1. Use the socket libraries and select to multiplex between the 
connections.

2. Use the SocketServer module (although I can't find a decent tutorial on 
how to use this module)

3. Use the asyncore module (I only found one example doing this, and I 
couldn't understand it).

What's the the simplest way to approach the problem?

Any tips gratefully received.

TIA,
Ian





More information about the Python-list mailing list