You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
657 B

.TH io_socketpair 3
io_socketpair \- create a pair of sockets
.B #include <io.h>
int \fBio_socketpair\fP(int64 pfd[2]);
io_socketpair creates a new UNIX socket pair and writes both descriptors
to \fId\fR. The socket pair works much like a pipe, but it is
bidirectional (i.e. both descriptors are for reading and writing).
io_socketpair returns 1 to indicate success. If something goes wrong,
io_socketpair returns 0, setting errno to indicate the error; in this
case it frees any memory that it allocated for the new socketpair, and
it leaves \fId\fR alone.
io_readfile(3), io_createfile(3), io_pipe(3)