PyDocs

Nav

Networking and Interprocess Communication

socket.listen

socket

method of socketnot WASI
  • socket.listen([backlog])
listen([backlog])

Enable a server to accept connections.  If backlog is specified, it must be
at least 0 (if it is lower, it is set to 0); it specifies the number of
unaccepted connections that the system will allow before refusing new
connections. If not specified, a default reasonable value is chosen.
Changed in 3.5
  • 3.5: The backlog parameter is now optional.
0 Examples
No examples for socket/socket.listen.
See Also
No see-alsos for socket/socket.listen
0 Notes
No notes for socket.listen