STINNER Victor added the comment:

IMHO you misunderstood asyncio design. See examples.

Using add_reader(), lowest level API:
* 
https://docs.python.org/dev/library/asyncio-eventloop.html#watch-a-file-descriptor-for-read-events

Using a protocol:
* 
https://docs.python.org/dev/library/asyncio-protocol.html#tcp-echo-client-protocol
* 
https://docs.python.org/dev/library/asyncio-protocol.html#udp-echo-client-protocol

Using a stream:
* 
https://docs.python.org/dev/library/asyncio-stream.html#tcp-echo-client-using-streams
* https://docs.python.org/dev/library/asyncio-stream.html#get-http-headers

etc.

----------

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

Reply via email to