1MONGOC_SOCKET_RECV(3) libmongoc MONGOC_SOCKET_RECV(3)
2
3
4
6 ssize_t
7 mongoc_socket_recv (mongoc_socket_t *sock,
8 void *buf,
9 size_t buflen,
10 int flags,
11 int64_t expire_at);
12
14 • sock: A mongoc_socket_t.
15
16 • buf: A buffer to read into.
17
18 • buflen: A size_t with the number of bytes to receive.
19
20 • flags: flags for recv().
21
22 • expire_at: A int64_t with the time to expire in monotonic time using
23 System Clock, which is in microseconds.
24
26 This function performs a recv() on the underlying socket.
27
29 The number of bytes received on success, 0 on stream closed, and -1 if
30 there was a failure and errno is set.
31
33 MongoDB, Inc
34
36 2017-present, MongoDB, Inc
37
38
39
40
411.25.1 Nov 08, 2023 MONGOC_SOCKET_RECV(3)