Writing a TCP/IP chat server
Hasan Diwan
hdiwan at localhost.
Thu Apr 10 14:57:28 EDT 2003
Ian:
I've used method #1 and method #2. Your first possibility is the
most flexible, but requires the most code and the most care, while the
second is the simpler way. I haven't heard of the asyncore module.
Contact me at hdiwan-at-mac-dot-com if you want an example of using
SocketServer.py.
Ian Partridge <iop199 at ecs.soton.ac.uk> writes:
>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).
--
Hasan Diwan <hdiwan at mac.com> OpenPGP keyID: 0x7EE3855B
http://ibn.com/~hdiwan
Fingerprint: 42F0 5758 C3EB BA1F ABD2 ED49 3390 CCF0 7EE3 855B
More information about the Python-list
mailing list