PyDocs

Nav

Networking and Interprocess Communication

socket.send

socket

method of socketnot WASI
  • socket.send(bytes[, flags])
Send a data string to the socket.

For the optional flags argument, see the Unix manual.
Return the number of bytes sent; this may be less than len(data) if
the network is busy.
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.send.
See Also
No see-alsos for socket/socket.send
0 Notes
No notes for socket.send