1MONGOC_SOCKET_ACCEPT(3) libmongoc MONGOC_SOCKET_ACCEPT(3)
2
3
4
6 mongoc_socket_accept - mongoc_socket_accept()
7
9 mongoc_socket_t *
10 mongoc_socket_accept (mongoc_socket_t *sock, int64_t expire_at);
11
13 · sock: A mongoc_socket_t.
14
15 · expire_at: An int64_t containing a timeout in milliseconds.
16
18 This function is a wrapper around the BSD socket accept() interface. It
19 allows for more portability between UNIX-like and Microsoft Windows
20 platforms.
21
23 NULL upon failure to accept or timeout. A newly allocated mon‐
24 goc_socket_t that should be released with mongoc_socket_destroy() on
25 success.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.16.2 Feb 25, 2020 MONGOC_SOCKET_ACCEPT(3)