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

NAME

6       mongoc_socket_new - mongoc_socket_new()
7

SYNOPSIS

9          mongoc_socket_t *
10          mongoc_socket_new (int domain,
11                             int type,
12                             int protocol) BSON_GNUC_WARN_UNUSED_RESULT;
13

PARAMETERS

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

DESCRIPTION

22       Creates a new mongoc_socket_t structure. This calls socket() underneath
23       to create a network socket.
24

RETURNS

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

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.21.1                           Mar 02, 2022             MONGOC_SOCKET_NEW(3)
Impressum