PyDocs

Nav

Networking and Interprocess Communication

socket.connect

socket

method of socketnot WASI
  • socket.connect(address)
connect(address)

Connect the socket to a remote address.  For IP sockets, the address
is a pair (host, port).
Changed in 3.5
  • 3.5: The method now waits until the connection completes instead of raising an InterruptedError exception if the connection is interrupted by a signal, the signal handler doesn’t raise an exception and the socket is blocking or has a timeout (see the PEP 475 for the rationale).
0 Examples
No examples for socket/socket.connect.
See Also
No see-alsos for socket/socket.connect
0 Notes
No notes for socket.connect