1MONGOC_STREAM_SETSOCKOPT(3) MongoDB C Driver MONGOC_STREAM_SETSOCKOPT(3)
2
3
4
6 mongoc_stream_setsockopt - mongoc_stream_setsockopt()
7
9 int
10 mongoc_stream_setsockopt (mongoc_stream_t *stream,
11 int level,
12 int optname,
13 void *optval,
14 mongoc_socklen_t optlen);
15
17 · stream: A mongoc_stream_t.
18
19 · level: The level to pass to setsockopt().
20
21 · optname: The optname to pass to setsockopt().
22
23 · optval: The optval to pass to setsockopt().
24
25 · optlen: The optlen to pass to setsockopt().
26
27 This function is a wrapper around setsockopt() for streams that wrap
28 sockets.
29
31 0 on success, otherwise -1 and errno is set.
32
34 MongoDB, Inc
35
37 2017-present, MongoDB, Inc
38
39
40
41
421.15.2 Nov 06, 2019 MONGOC_STREAM_SETSOCKOPT(3)