[issue26395] asyncio does not support yielding from recvfrom (socket/udp)

Guido van Rossum report at bugs.python.org
Sat Feb 20 18:59:24 EST 2016


Guido van Rossum added the comment:

You should be able to do this by calling create_datagram_endpoint(), passing it a custom DatagramProtocol subclass whose datagram_received() stores the data in the result of a Future. You can then wait for the Future to wait for the data (assuming it ever arrives :-).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26395>
_______________________________________


More information about the Python-bugs-list mailing list