Ubuntu Manpages

  • sock: A mongoc_socket_t.
  • level: A sockopt level.
  • optname: A sockopt name.
  • optval: A the value for the sockopt.
  • optlen: A mongoc_socklen_t that contains the length of optval.

This is a helper function for setsockopt().

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

MongoDB, Inc

2017-present, MongoDB, Inc