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, int type, int protocol);
11

PARAMETERS

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

DESCRIPTION

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

RETURNS

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

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.16.2                           Feb 25, 2020             MONGOC_SOCKET_NEW(3)
Impressum