PyDocs

Nav

Networking and Interprocess Communication

socket.sendto

socket

method of socketnot WASI
  • socket.sendto(bytes, address)
  • socket.sendto(bytes, flags, address)
sendto(data[, flags], address) -> count

Like send(data, flags) but allows specifying the destination address.
For IP sockets, the address is a pair (hostaddr, port).
Changed in 3.5
  • 3.5: If the system call is interrupted and the signal handler does not raise an exception, the method now retries the system call instead of raising an InterruptedError exception (see PEP 475 for the rationale).
0 Examples
No examples for socket/socket.sendto.
See Also
No see-alsos for socket/socket.sendto
0 Notes
No notes for socket.sendto