Writing a TCP/IP chat server

Kevin Altis altis at semi-retired.com
Thu Apr 10 22:20:10 CEST 2003


A simple chat implementation with a GUI. This client is also a server and
can dispatch messages to multiple recipients by simply providing their IP
addresses by separating each address with a comma in the provided text
field.

  http://pythoncard.sourceforge.net/samples/chat.html

You may also want to look at Twisted.

ka

"Ian Partridge" <iop199 at ecs.soton.ac.uk> wrote in message
news:Pine.LNX.4.44.0304101906590.8243-100000 at servalan.ecs.soton.ac.uk...
> 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