Skip to content
BSD syscall#135

svc · unix #135

socketpair

Creates a connected pair of sockets of the same type.

Prototype

int socketpair(int domain, int type, int protocol, int *rsv);

Returns: int

Arguments

NameTypeDirDescription
domainint-
typeint-
protocolint-
rsvint-

Version history

XNU tagmacOS#
xnu-1456.1.26macOS 10.6 Snow Leopard135
xnu-1486.2.11135
xnu-1504.15.3135
xnu-1504.3.12135
xnu-1504.7.4135
xnu-1504.9.17135
xnu-1504.9.26135
xnu-1504.9.37135

Notes

No prose documentation yet.