1MONGOC_STREAM_WRITE(3)             libmongoc            MONGOC_STREAM_WRITE(3)
2
3
4

NAME

6       mongoc_stream_write - mongoc_stream_write()
7

SYNOPSIS

9          ssize_t
10          mongoc_stream_write (mongoc_stream_t *stream,
11                               void *buf,
12                               size_t count,
13                               int32_t timeout_msec);
14

PARAMETERS

16       · stream: A mongoc_stream_t.
17
18       · buf: The buffer to write.
19
20       · count: The number of bytes to write.
21
22       · timeout_msec:  The  number  of milliseconds to wait before failure, a
23         timeout of 0 will not block. If negative, use the default timeout.
24
25       The mongoc_stream_write() function shall perform  a  write  to  a  mon‐
26       goc_stream_t.  It's modeled on the API and semantics of write(), though
27       the parameters map only loosely.
28

RETURNS

30       The mongoc_stream_write function returns the number of bytes written on
31       success. It returns -1 and sets errno upon failure.
32

SEE ALSO

34       mongoc_stream_read()
35
36       mongoc_stream_readv()
37
38       mongoc_stream_writev()
39

AUTHOR

41       MongoDB, Inc
42
44       2017-present, MongoDB, Inc
45
46
47
48
491.16.2                           Feb 25, 2020           MONGOC_STREAM_WRITE(3)
Impressum