mongoc_socket_send man page

mongoc_socket_send ā€” mongoc_socket_send()

Synopsis

ssize_t
mongoc_socket_send (mongoc_socket_t *sock,
                    const void *buf,
                    size_t buflen,
                    int64_t expire_at);

Parameters

Description

Sends buflen bytes in buf to the destination. If a timeout expired, the number of bytes sent will be returned or -1 if no bytes were sent.

Returns

-1 on failure and errno is set, or the number of bytes sent.

Author

MongoDB, Inc

Info

Nov 17, 2017 1.8.2 MongoDB C Driver