1MONGOC_STREAM_WRITE(3)         MongoDB C Driver         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  >= 0 and < min_bytes when end-of-file is encoun‐
32       tered and -1 on failure. errno is set upon failure.
33

SEE ALSO

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

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.13.1                           Jan 24, 2019           MONGOC_STREAM_WRITE(3)
Impressum