Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

Author

       MongoDB, Inc

Description

       This is a helper function for setsockopt().

Parameters

       • 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.

Returns

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

Synopsis

          int
          mongoc_socket_setsockopt (mongoc_socket_t *sock,
                                    int level,
                                    int optname,
                                    const void *optval,
                                    mongoc_socklen_t optlen);

See Also