1MONGOC_SOCKET_RECV(3)              libmongoc             MONGOC_SOCKET_RECV(3)
2
3
4

SYNOPSIS

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

PARAMETERS

14sock: A mongoc_socket_t.
15
16buf: A buffer to read into.
17
18buflen: A size_t with the number of bytes to receive.
19
20flags: flags for recv().
21
22expire_at:  A int64_t with the time to expire in monotonic time using
23         System Clock, which is in microseconds.
24

DESCRIPTION

26       This function performs a recv() on the underlying socket.
27

RETURNS

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

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.25.1                           Nov 08, 2023            MONGOC_SOCKET_RECV(3)
Impressum