1MONGOC_STREAM_CORK(3) libmongoc MONGOC_STREAM_CORK(3)
2
3
4
6 mongoc_stream_cork - mongoc_stream_cork()
7
9 int
10 mongoc_stream_cork (mongoc_stream_t *stream);
11
13 • stream: A mongoc_stream_t.
14
15 This function shall prevent the writing of bytes to the underlying
16 socket.
17
18 NOTE:
19 Not all streams implement this function. Buffering generally works
20 better.
21
23 0 on success, -1 on failure and errno is set.
24
25 SEE ALSO:
26 mongoc_stream_buffered_new().
27
28 mongoc_stream_uncork().
29
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.24.3 Aug 17, 2023 MONGOC_STREAM_CORK(3)