PyDocs

Nav

Networking and Interprocess Communication

socket.setblocking

socket

method of socketnot WASI
  • socket.setblocking(flag)
setblocking(flag)

Set the socket to blocking (flag is true) or non-blocking (false).
setblocking(True) is equivalent to settimeout(None);
setblocking(False) is equivalent to settimeout(0.0).
Changed in 3.7
  • 3.7: The method no longer applies SOCK_NONBLOCK flag on socket.type.
0 Examples
No examples for socket/socket.setblocking.
See Also
No see-alsos for socket/socket.setblocking
0 Notes
No notes for socket.setblocking