mongoc_stream_cork(3)

mongoc_stream_cork3

Usage

int
mongoc_stream_cork (mongoc_stream_t *stream);

Parameters

•

stream: A mongoc_stream_t.

This function shall prevent the writing of bytes to the underlying socket.

NOTE:

Not all streams implement this function. Buffering generally works better.

Returns

0 on success, -1 on failure and errno is set.

SEE ALSO:

mongoc_stream_buffered_new().
mongoc_stream_uncork().

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.