mongoc_socket_recv(3)

mongoc_socket_recv3

Usage

ssize_t
mongoc_socket_recv (mongoc_socket_t *sock,
                    void *buf,
                    size_t buflen,
                    int flags,
                    int64_t expire_at);

Parameters

•

sock: A mongoc_socket_t.

•

buf: A buffer to read into.

•

buflen: A size_t with the number of bytes to receive.

•

flags: flags for recv().

•

expire_at: A int64_t with the time to expire in monotonic time using System Clock, which is in microseconds.

Overview

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

Returns

The number of bytes received on success, 0 on stream closed, and -1 if there was a failure and errno is set.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.