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

NAME

6       mongoc_socket_recv - mongoc_socket_recv()
7

SYNOPSIS

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

PARAMETERS

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

DESCRIPTION

29       This function performs a recv() on the underlying socket.
30

RETURNS

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

AUTHOR

36       MongoDB, Inc
37
39       2017-present, MongoDB, Inc
40
41
42
43
441.20.0                           Nov 18, 2021            MONGOC_SOCKET_RECV(3)
Impressum