logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Author

       MongoDB, Inc

Description

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

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 SystemClock, which is in
         microseconds.

Returns

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

Synopsis

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

See Also