1MONGOC_SOCKET_SEND(3) libmongoc MONGOC_SOCKET_SEND(3)
2
3
4
6 ssize_t
7 mongoc_socket_send (mongoc_socket_t *sock,
8 const void *buf,
9 size_t buflen,
10 int64_t expire_at);
11
13 • sock: A mongoc_socket_t.
14
15 • buf: A buffer to send.
16
17 • buflen: A size_t with the number of bytes in buf.
18
19 • expire_at: A int64_t with an absolute timeout for the operation or 0.
20 The timeout is in monotonic time using microseconds. You can retrieve
21 the current monotonic time with System Clock.
22
24 Sends buflen bytes in buf to the destination. If a timeout expired, the
25 number of bytes sent will be returned or -1 if no bytes were sent.
26
28 -1 on failure and errno is set, or the number of bytes sent.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.25.1 Nov 08, 2023 MONGOC_SOCKET_SEND(3)