PyDocs

Nav

Networking and Interprocess Communication

socketpair

socket

function (source) not WASI
  • socketpair([family[, type[, proto]]])
socketpair([family[, type[, proto]]]) -> (socket object, socket object)
Create a pair of socket objects from the sockets returned by the platform
socketpair() function.
The arguments are the same as for socket() except the default family is AF_UNIX
if defined on the platform; otherwise, the default is AF_INET.
Changed in 3.2, 3.4, 3.5
  • 3.2: The returned socket objects now support the whole socket API, rather than a subset.
  • 3.4: The returned sockets are now non-inheritable.
  • 3.5: Windows support added.
0 Examples
No examples for socket/socketpair.
See Also
No see-alsos for socket/socketpair
0 Notes
No notes for socketpair