You are here : python_3socketsocketsocketpair

socket.socketpair() - socket

Build a pair of connected socket objects using the given address family, socket
type, and protocol number.  Address family, socket type, and protocol number are
as for the socket() function above. The default family is AF_UNIX
if defined on the platform; otherwise, the default is AF_INET.


Syntax

socket.socketpair([family[, type[, proto]]])


Example


Output / Return Value


Limitations


Alternatives / See Also


Reference