1MONGOC_STREAM_CORK(3)              libmongoc             MONGOC_STREAM_CORK(3)
2
3
4

NAME

6       mongoc_stream_cork - mongoc_stream_cork()
7

SYNOPSIS

9          int
10          mongoc_stream_cork (mongoc_stream_t *stream);
11

PARAMETERS

13stream: 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

RETURNS

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

AUTHOR

32       MongoDB, Inc
33
35       2017-present, MongoDB, Inc
36
37
38
39
401.23.1                           Oct 20, 2022            MONGOC_STREAM_CORK(3)
Impressum