MONGOC_STREAM_CORK(3)
π MONGOC_STREAM_CORK π
okay bestie, welcome to the libmongoc corner of the group chat β this page is all about mongoc_stream_cork(), and she is giving βpause the write pipelineβ energy. π«Ά
π§ SYNOPSIS
int
mongoc_stream_cork (mongoc_stream_t *stream);
π PARAMETERS
streamβ amongoc_stream_t. Thatβs the stream, bestie β the one and only. π
This function shall prevent the writing of bytes to the underlying socket. Lowkey itβs the βhold up, donβt send that yetβ of stream calls. π
β οΈ NOTE: not all streams implement this function. Buffering generally works better. No cap β this is important. π
π RETURNS
0on success.-1on failure, anderrnois set.
So like: 0 = slay, -1 = something went off and errno is spilling the tea. β¨
π SEE ALSO
mongoc_stream_buffered_new()β go peek at this one too.mongoc_stream_uncork()β the un-corking counterpart, obviously. π
π AUTHOR
MongoDB, Inc β iconic, tbh. π
π COPYRIGHT
2009-present, MongoDB, Inc. β periodt. π
Thatβs the whole vibe check, bestie β libmongoc version 2.5.6, dated Oct 09, 2026. Catch you in the next man page! π
π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms