1MONGOC_SOCKET_ACCEPT(3) libmongoc MONGOC_SOCKET_ACCEPT(3)
2
3
4
6 mongoc_socket_t *
7 mongoc_socket_accept (mongoc_socket_t *sock,
8 int64_t expire_at) BSON_GNUC_WARN_UNUSED_RESULT;
9
11 • sock: A mongoc_socket_t.
12
13 • expire_at: An int64_t containing a timeout in milliseconds.
14
16 This function is a wrapper around the BSD socket accept() interface. It
17 allows for more portability between UNIX-like and Microsoft Windows
18 platforms.
19
21 NULL upon failure to accept or timeout. A newly allocated mon‐
22 goc_socket_t that should be released with mongoc_socket_destroy() on
23 success.
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.25.1 Nov 08, 2023 MONGOC_SOCKET_ACCEPT(3)