1MONGOC_SOCKET_ACCEPT(3)            libmongoc           MONGOC_SOCKET_ACCEPT(3)
2
3
4

NAME

6       mongoc_socket_accept - mongoc_socket_accept()
7

SYNOPSIS

9          mongoc_socket_t *
10          mongoc_socket_accept (mongoc_socket_t *sock,
11                                int64_t expire_at) BSON_GNUC_WARN_UNUSED_RESULT;
12

PARAMETERS

14sock: A mongoc_socket_t.
15
16expire_at: An int64_t containing a timeout in milliseconds.
17

DESCRIPTION

19       This function is a wrapper around the BSD socket accept() interface. It
20       allows for more portability between  UNIX-like  and  Microsoft  Windows
21       platforms.
22

RETURNS

24       NULL  upon  failure  to  accept  or  timeout.  A  newly  allocated mon‐
25       goc_socket_t that should be released  with  mongoc_socket_destroy()  on
26       success.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.20.0                           Nov 18, 2021          MONGOC_SOCKET_ACCEPT(3)
Impressum