1MONGOC_STREAM_READV(3)             libmongoc            MONGOC_STREAM_READV(3)
2
3
4

SYNOPSIS

6          ssize_t
7          mongoc_stream_readv (mongoc_stream_t *stream,
8                               mongoc_iovec_t *iov,
9                               size_t iovcnt,
10                               size_t min_bytes,
11                               int32_t timeout_msec);
12

PARAMETERS

14stream: A mongoc_stream_t.
15
16iov: A vector of mongoc_iovec_t.
17
18iovcnt: The number of items in iov.
19
20min_bytes: The minimum number of bytes to read or failure will be in‐
21         dicated.
22
23timeout_msec: A timeout in milliseconds, or 0 to indicate  non-block‐
24         ing. A negative value with use the default timeout.
25
26       This function is identical to mongoc_stream_read() except that it takes
27       a mongoc_iovec_t to perform gathered I/O.
28

RETURNS

30       >= 0 on success, -1 on failure and errno is set.
31
32       SEE ALSO:
33          mongoc_stream_read()
34
35          mongoc_stream_write()
36
37          mongoc_stream_writev()
38
39

AUTHOR

41       MongoDB, Inc
42
44       2017-present, MongoDB, Inc
45
46
47
48
491.25.1                           Nov 08, 2023           MONGOC_STREAM_READV(3)
Impressum