mongoc_socket_recv man page

mongoc_socket_recv ā€” mongoc_socket_recv()

Synopsis

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

Parameters

Description

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.

Author

MongoDB, Inc

Info

Oct 12, 2017 1.8.1 MongoDB C Driver