[Tutor] Re: asyncore, asynchat, sockets, and threads
Lee Harr
missive@hotmail.com
Tue Jul 15 21:59:01 2003
# server is listening on ...
REMOTE_HOST = '172.0.0.1' # This looks funny... Do you mean
# 127.0.0.1 ?
REMOTE_PORT = 50001
I think your intuition about using a Queue may be the
right thing in the gui client to you chat server.
Basically, you would have 2 threads:
Network client thread feeds messages in to queue.
Gui thread reads messages from queue and displays them.
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail