Go to the previous, next section.

socketpair

SYNOPSIS

int socketpair(int domain, int type, int protocol, int sv[2]);

PARAMETERS

domain: [in] the socket protocol family.

type: [in] the socket type.

protocol: [in] the socket protocol.

sv: [out] the two file descriptors.

DESCRIPTION

Creates a pair of interconnected sockets. The two sockets are indistinguishable. See socket for more information on domains, types and protocols. See section socket

Linux 1.0 supports only the AF_UNIX domain for this call.

RETURN VALUE

On success, zero is returned. On error, -1 is returned and errno is set to one of the following values:

Go to the previous, next section.