1MONGOC_SOCKET_NEW(3) MongoDB C Driver MONGOC_SOCKET_NEW(3)
2
3
4
6 mongoc_socket_new - mongoc_socket_new()
7
9 mongoc_socket_t *
10 mongoc_socket_new (int domain, int type, int protocol);
11
13 · domain: An int containing the address family such as AF_INET.
14
15 · type: An int containing the socket type such as SOCK_STREAM.
16
17 · protocol: A protocol subset, typically 0.
18
20 Creates a new mongoc_socket_t structure. This calls socket() underneath
21 to create a network socket.
22
24 A new socket if successful, otherwise NULL and errno is set. The result
25 should be freed with mongoc_socket_destroy() when no longer in use.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.15.2 Nov 06, 2019 MONGOC_SOCKET_NEW(3)