NGG added the comment:

If I want to write a TCP client which communicates back and forth with the 
server (both parties can send messages anytime) then it would be really easy to 
use it the following way:
Start a background thread with asyncore.loop(), and you can send messages 
easily, and handle_read() will be called automatically whenever data is 
received.
If this usage is not supported and I understand correctly then I can only send 
messages before starting the loop or callbacks from the loop (handle_accept, 
handle_read, etc).
This seems to be a much more difficult and error-prone way (at least for 
pre-Future python versions)

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26371>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to