PyDocs

Nav

Networking and Interprocess Communication

DatagramTransport.sendto

asyncio

method of DatagramTransport (source) not WASI
  • DatagramTransport.sendto(data, addr=None)
Send data to the transport.

This does not block; it buffers the data and arranges for it
to be sent out asynchronously.
addr is target socket address.
If addr is None use target address pointed on transport creation.
If data is an empty bytes object a zero-length datagram will be
sent.
Changed in 3.13
  • 3.13: This method can be called with an empty bytes object to send a zero-length datagram. The buffer size calculation used for flow control is also updated to account for the datagram header.
0 Examples
No examples for asyncio/DatagramTransport.sendto.
See Also
No see-alsos for asyncio/DatagramTransport.sendto
0 Notes
No notes for DatagramTransport.sendto