![]() |
![]() |
![]() |
![]() |
Create a pair of connected sockets
#include <sys/types.h> #include <sys/socket.h> int socketpair( int d, int type, int protocol, int * sv );
socket3r.lib, socket3s.lib
The socketpair() call creates an unnamed pair of connected sockets in the specified domain d, of the specified type, using the optionally specified protocol. The descriptors used in referencing the new sockets are returned in sv[0] and sv[1]. The two sockets are indistinguishable.
For more detailed information about socketpairs, see the section, Socketpairs in the chapter, A Socket-based IPC Tutorial.
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | Yes |
pipe(), read(), write() in the C Library Reference
![]() |
![]() |
![]() |
![]() |