mongoc_stream_setsockopt(3)

mongoc_stream_setsockopt3

Usage

int
mongoc_stream_setsockopt (mongoc_stream_t *stream,
                          int level,
                          int optname,
                          void *optval,
                          mongoc_socklen_t optlen);

Parameters

•

stream: A mongoc_stream_t.

•

level: The level to pass to setsockopt().

•

optname: The optname to pass to setsockopt().

•

optval: The optval to pass to setsockopt().

•

optlen: The optlen to pass to setsockopt().

This function is a wrapper around setsockopt() for streams that wrap sockets.

Returns

0 on success, otherwise -1 and errno is set.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.