1MONGOC_SOCKET_LISTEN(3) libmongoc MONGOC_SOCKET_LISTEN(3)
23
4
SYNOPSIS
6int
7mongoc_socket_listen (mongoc_socket_t *sock, unsigned int backlog);
8
PARAMETERS
10• sock: A mongoc_socket_t.
1112
• backlog: An int containing max backlog size.
13
DESCRIPTION
15This function is similar to the BSD sockets listen() function. It is
16meant for socket servers.
17
RETURNS
190 on success, -1 on failure and errno is set.
20
AUTHOR
22MongoDB, Inc
23
COPYRIGHT
252017-present, MongoDB, Inc
2627
28
29
30
1.25.1 Nov 08, 2023 MONGOC_SOCKET_LISTEN(3)