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