aiocoap.transports.udp6 module

This module implements a TransportEndpoint for UDP based on the asyncio DatagramProtocol.

As this makes use of RFC 3542 options (IPV6_PKTINFO), this is likely to only work with IPv6 interfaces. Hybrid stacks are supported, though, so V4MAPPED addresses (a la ::ffff:127.0.0.1) will be used when name resolution shows that a name is only available on V4.

class aiocoap.transports.udp6.UDP6EndpointAddress(sockaddr, *, pktinfo=None)

Bases: object

hostinfo
uri
port
is_multicast
class aiocoap.transports.udp6.SockExtendedErr

Bases: aiocoap.transports.udp6._SockExtendedErr

classmethod load(data)
class aiocoap.transports.udp6.TransportEndpointUDP6(new_message_callback, new_error_callback, log, loop)

Bases: aiocoap.util.asyncio.RecvmsgDatagramProtocol, aiocoap.interfaces.TransportEndpoint

ready = None

Future that gets fullfilled by connection_made (ie. don’t send before this is done; handled by create_..._context

classmethod create_client_transport_endpoint(new_message_callback, new_error_callback, log, loop, dump_to)
classmethod create_server_transport_endpoint(new_message_callback, new_error_callback, log, loop, dump_to, bind)
shutdown()
send(message)
fill_remote(request)
connection_made(transport)

Implementation of the DatagramProtocol interface, called by the transport.

datagram_msg_received(data, ancdata, flags, address)

Implementation of the RecvmsgDatagramProtocol interface, called by the transport.

datagram_errqueue_received(data, ancdata, flags, address)
error_received(exc)

Implementation of the DatagramProtocol interface, called by the transport.

connection_lost(exc)