Risk-Aware AI Code Review for Business-Critical Systems
LiveReview LiveReview Explore LiveReview

Author

       MongoDB, Inc

Description

       This function is similar to the BSD sockets listen() function. It is meant for socket servers.

Parameters

       • sock: A mongoc_socket_t.

       • backlog: An int containing max backlog size.

Returns

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

Synopsis

          int
          mongoc_socket_listen (mongoc_socket_t *sock, unsigned int backlog);

See Also