Creates a connected pair of sockets.
Synopsis
Declared in <folly/net/NetOps.h>
int
socketpair(
int domain,
int type,
int protocol,
NetworkSocket sv[]);
Return Value
0 on success, or ‐1 on error.
Parameters
Name |
Description |
domain |
The communication domain. |
type |
The socket type. |
protocol |
The protocol. |
sv |
Array that receives the two connected sockets. |
Created with MrDocs