MONGOC_STREAM_UNCORK(3)

MONGOC_STREAM_UNCORK(3) πŸ’…

okay so this is from the libmongoc manual, and we're talking about the moment a corked socket finally gets to send its bytes through. iconic ✨

✨ SYNOPSIS ✨

int
mongoc_stream_uncork (mongoc_stream_t *stream);

πŸŽ€ PARAMETERS πŸŽ€

  • stream β€” a mongoc_stream_t. that's the stream, bestie 🫢

This function shall allow a previously corked socket to pass bytes to the underlying socket. no cap, that's the whole assignment πŸ’…

⚠️ NOTE: Not all streams implement this function. Buffering generally works better. πŸ’€

πŸ”₯ RETURNS πŸ”₯

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

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_stream_buffered_new().
  • mongoc_stream_cork().

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc. main character author energy πŸ‘‘

2009-present, MongoDB, Inc.


bye bestie 🫢 β€” this page is libmongoc version 2.5.6, dated Oct 09, 2026, with manual tag MONGOC_STREAM_UNCORK(3). slay ✨

πŸ“¦ where this page comes from