Multiple Threads & IRC

Fredrik Lundh fredrik at effbot.org
Mon Dec 11 04:16:34 EST 2000


"Wilbur" wrote:
> The server sends data in packets, and it sends whenever it can.  How can
> I get my client to be able to receive data from the server without
> knowing when it will send and what amount of data will be sent?  I only
> know how to tell Python to wait until it receives, say, 1024 bytes.  If
> the server doesn't send any more, how can I tell Python to stop waiting?

http://www.python.org/doc/current/lib/module-asyncore.html

</F>

<!-- (the eff-bot guide to) the standard python library:
http://www.pythonware.com/people/fredrik/librarybook.htm
-->






More information about the Python-list mailing list