mongoc_socket_new (3) Linux Manual Page
mongoc_socket_new() – Creates a new mongoc_socket_t structure. This calls socket() underneath to create a network socket.
Synopsis
mongoc_socket_t *
mongoc_socket_new (int domain,
int type,
int protocol);
Parameters
- domain
- An int containing the address family such as AF_INET.
- type
- An int containing the socket type such as SOCK_STREAM.
- protocol
- A protocol subset, typically 0.
