1MONGOC_SOCKET_SETSOCKOPT(3)        libmongoc       MONGOC_SOCKET_SETSOCKOPT(3)
2
3
4

NAME

6       mongoc_socket_setsockopt - mongoc_socket_setsockopt()
7

SYNOPSIS

9          int
10          mongoc_socket_setsockopt (mongoc_socket_t *sock,
11                                    int level,
12                                    int optname,
13                                    const void *optval,
14                                    mongoc_socklen_t optlen);
15

PARAMETERS

17sock: A mongoc_socket_t.
18
19level: A sockopt level.
20
21optname: A sockopt name.
22
23optval: A the value for the sockopt.
24
25optlen: A mongoc_socklen_t that contains the length of optval.
26

DESCRIPTION

28       This is a helper function for setsockopt().
29

RETURNS

31       0 on success, -1 on failure and errno is set.
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.20.0                           Nov 18, 2021      MONGOC_SOCKET_SETSOCKOPT(3)
Impressum