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

16stream: A mongoc_stream_t.
17
18buf: The buffer to write.
19
20count: The number of bytes to write.
21
22timeout_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
26       mongoc_stream_t.  It's  modeled  on  the  API and semantics of write(),
27       though the parameters map only loosely.
28

RETURNS

30       The mongoc_stream_write() function returns the number of bytes  written
31       on success. It returns -1 and sets errno upon failure.
32
33       SEE ALSO:
34          mongoc_stream_read()
35
36          mongoc_stream_readv()
37
38          mongoc_stream_writev()
39
40

AUTHOR

42       MongoDB, Inc
43
45       2017-present, MongoDB, Inc
46
47
48
49
501.23.1                           Oct 20, 2022           MONGOC_STREAM_WRITE(3)
Impressum