On Mon, Sep 24, 2018 at 11:35:45PM -0400, Yury Selivanov wrote:
> We already have them as part of the public API: 
> https://docs.python.org/3/library/asyncio-eventloop.html#watching-file-descriptors
> 
> Would they work for you?  I imagine you can combine loop.add_reader() and 
> loop.add_writer() with socket.recvmsg() pretty easily.

I don't know how I overlooked that -- thanks for pointing it out this
interface, it does allow me to build all I need, and things work on
uvloop just as well as they do on asyncio.

For reference, if anyone needs a RecvmsgDatagramTransport /
RecvmsgDatagramProtocol pair, mine is implemented at [1].

Thank you for you quick and helpful response
chrysn

[1]: 
https://gitlab.com/energyharvesting/aiocoap/blob/f4fa27227bb8d6dfe64eae7807040f6ef4ee8235/aiocoap/util/asyncio/recvmsg.py

-- 
There's always a bigger fish.
  -- Qui-Gon Jinn

Attachment: signature.asc
Description: PGP signature

Reply via email to