1MONGOC_STREAM_READV(3) libmongoc MONGOC_STREAM_READV(3)
2
3
4
6 mongoc_stream_readv - mongoc_stream_readv()
7
9 ssize_t
10 mongoc_stream_readv (mongoc_stream_t *stream,
11 mongoc_iovec_t *iov,
12 size_t iovcnt,
13 size_t min_bytes,
14 int32_t timeout_msec);
15
17 • stream: A mongoc_stream_t.
18
19 • iov: A vector of mongoc_iovec_t.
20
21 • iovcnt: The number of items in iov.
22
23 • min_bytes: The minimum number of bytes to read or failure will be in‐
24 dicated.
25
26 • timeout_msec: A timeout in milliseconds, or 0 to indicate non-block‐
27 ing. A negative value with use the default timeout.
28
29 This function is identical to mongoc_stream_read() except that it takes
30 a mongoc_iovec_t to perform gathered I/O.
31
33 >= 0 on success, -1 on failure and errno is set.
34
35 SEE ALSO:
36 mongoc_stream_read()
37
38 mongoc_stream_write()
39
40 mongoc_stream_writev()
41
42
44 MongoDB, Inc
45
47 2017-present, MongoDB, Inc
48
49
50
51
521.23.1 Oct 20, 2022 MONGOC_STREAM_READV(3)