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

SYNOPSIS

6          int
7          mongoc_stream_cork (mongoc_stream_t *stream);
8

PARAMETERS

10stream: A mongoc_stream_t.
11
12       This  function  shall  prevent  the  writing of bytes to the underlying
13       socket.
14
15       NOTE:
16          Not all streams implement this function. Buffering  generally  works
17          better.
18

RETURNS

20       0 on success, -1 on failure and errno is set.
21
22       SEE ALSO:
23          mongoc_stream_buffered_new().
24
25          mongoc_stream_uncork().
26
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.25.1                           Nov 08, 2023            MONGOC_STREAM_CORK(3)
Impressum