Message260380
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) |
|
Date |
User |
Action |
Args |
2016-02-17 08:25:17 | ngg | set | recipients:
+ ngg, gvanrossum, vstinner, yselivanov |
2016-02-17 08:25:17 | ngg | set | messageid: <1455697517.62.0.31523339154.issue26371@psf.upfronthosting.co.za> |
2016-02-17 08:25:17 | ngg | link | issue26371 messages |
2016-02-17 08:25:17 | ngg | create | |
|