1MONGOC_STREAM_WRITE(3) libmongoc MONGOC_STREAM_WRITE(3)
2
3
4
6 ssize_t
7 mongoc_stream_write (mongoc_stream_t *stream,
8 void *buf,
9 size_t count,
10 int32_t timeout_msec);
11
13 • stream: A mongoc_stream_t.
14
15 • buf: The buffer to write.
16
17 • count: The number of bytes to write.
18
19 • timeout_msec: The number of milliseconds to wait before failure, a
20 timeout of 0 will not block. If negative, use the default timeout.
21
22 The mongoc_stream_write() function shall perform a write to a
23 mongoc_stream_t. It's modeled on the API and semantics of write(),
24 though the parameters map only loosely.
25
27 The mongoc_stream_write() function returns the number of bytes written
28 on success. It returns -1 and sets errno upon failure.
29
30 SEE ALSO:
31 mongoc_stream_read()
32
33 mongoc_stream_readv()
34
35 mongoc_stream_writev()
36
37
39 MongoDB, Inc
40
42 2017-present, MongoDB, Inc
43
44
45
46
471.25.1 Nov 08, 2023 MONGOC_STREAM_WRITE(3)