aiocoap.util.asyncio module

Extensions to asyncio and workarounds around its shortcomings


Use this on a (Timer)Handle when you would .cancel() it, just also drop the callback and arguments for them to be freed soon.

class aiocoap.util.asyncio.RecvmsgDatagramProtocol

Bases: asyncio.protocols.DatagramProtocol

Inheriting from this indicates that the instance expects to be called back datagram_msg_received instead of datagram_received

class aiocoap.util.asyncio.RecvmsgSelectorDatagramTransport(*args, **kwargs)

Bases: asyncio.selector_events._SelectorDatagramTransport

sendmsg(data, ancdata, flags, address)