1MONGOC_SOCKET_NEW(3)               libmongoc              MONGOC_SOCKET_NEW(3)
2
3
4

SYNOPSIS

6          mongoc_socket_t *
7          mongoc_socket_new (int domain,
8                             int type,
9                             int protocol) BSON_GNUC_WARN_UNUSED_RESULT;
10

PARAMETERS

12domain: An int containing the address family such as AF_INET.
13
14type: An int containing the socket type such as SOCK_STREAM.
15
16protocol: A protocol subset, typically 0.
17

DESCRIPTION

19       Creates a new mongoc_socket_t structure. This calls socket() underneath
20       to create a network socket.
21

RETURNS

23       A new socket if successful, otherwise NULL and errno is set. The result
24       should be freed with mongoc_socket_destroy() when no longer in use.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.25.1                           Nov 08, 2023             MONGOC_SOCKET_NEW(3)
Impressum