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

NAME

6       mongoc_stream_readv - mongoc_stream_readv()
7

SYNOPSIS

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

PARAMETERS

17stream: A mongoc_stream_t.
18
19iov: A vector of mongoc_iovec_t.
20
21iovcnt: The number of items in iov.
22
23min_bytes: The minimum number of bytes to read or failure will be in‐
24         dicated.
25
26timeout_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

RETURNS

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

AUTHOR

44       MongoDB, Inc
45
47       2017-present, MongoDB, Inc
48
49
50
51
521.20.0                           Nov 18, 2021           MONGOC_STREAM_READV(3)
Impressum