1MONGOC_STREAM_READV(3) MongoDB C Driver 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
24 indicated.
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
36 mongoc_stream_read()
37
38 mongoc_stream_write()
39
40 mongoc_stream_writev()
41
43 MongoDB, Inc
44
46 2017-present, MongoDB, Inc
47
48
49
50
511.14.0 Feb 22, 2019 MONGOC_STREAM_READV(3)