1MONGOC_SOCKET_SETSOCKOPT(3) libmongoc MONGOC_SOCKET_SETSOCKOPT(3)
2
3
4
6 mongoc_socket_setsockopt - mongoc_socket_setsockopt()
7
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
17 • sock: A mongoc_socket_t.
18
19 • level: A sockopt level.
20
21 • optname: A sockopt name.
22
23 • optval: A the value for the sockopt.
24
25 • optlen: A mongoc_socklen_t that contains the length of optval.
26
28 This is a helper function for setsockopt().
29
31 0 on success, -1 on failure and errno is set.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.17.6 Jun 03, 2021 MONGOC_SOCKET_SETSOCKOPT(3)