1MONGOC_SOCKET_SENDV(3) libmongoc MONGOC_SOCKET_SENDV(3)
2
3
4
6 mongoc_socket_sendv - mongoc_socket_sendv()
7
9 ssize_t
10 mongoc_socket_sendv (mongoc_socket_t *sock,
11 mongoc_iovec_t *iov,
12 size_t iovcnt,
13 int64_t expire_at);
14
16 • sock: A mongoc_socket_t.
17
18 • iov: A mongoc_iovec_t.
19
20 • iovcnt: A size_t containing the number of elements in iov.
21
22 • expire_at: A int64_t with absolute timeout in monotonic time. The
23 monotonic clock is in microseconds and can be fetched using System
24 Clock.
25
27 Sends a vector of buffers to the destination. This uses sendmsg() when
28 available to perform a gathered write. If IOV_MAX is reached, a fall‐
29 back will be used.
30
32 the number of bytes sent on success, or -1 on failure and errno is set.
33
35 MongoDB, Inc
36
38 2017-present, MongoDB, Inc
39
40
41
42
431.20.0 Nov 18, 2021 MONGOC_SOCKET_SENDV(3)