1MONGOC_SOCKET_SENDV(3)             libmongoc            MONGOC_SOCKET_SENDV(3)
2
3
4

NAME

6       mongoc_socket_sendv - mongoc_socket_sendv()
7

SYNOPSIS

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

PARAMETERS

16sock: A mongoc_socket_t.
17
18iov: A mongoc_iovec_t.
19
20iovcnt: A size_t containing the number of elements in iov.
21
22expire_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

DESCRIPTION

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

RETURNS

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

AUTHOR

35       MongoDB, Inc
36
38       2017-present, MongoDB, Inc
39
40
41
42
431.17.6                           Jun 03, 2021           MONGOC_SOCKET_SENDV(3)
Impressum