MONGOC_STREAM_CLOSE(3)

πŸ’… MONGOC_STREAM_CLOSE(3) πŸ’…

okay so bestie, welcome to libmongoc's very own MONGOC_STREAM_CLOSE(3) page β€” yes that's the manual name, we're not copying the header line, we're just vibing with it ✨


🌸 SYNOPSIS 🌸

int
mongoc_stream_close (mongoc_stream_t *stream);

like, that's the whole signature. one function. one int. gorgeous.


πŸŽ€ PARAMETERS πŸŽ€

  • stream β€” a mongoc_stream_t. that's it. that's the parameter. she's the main character here bestie πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this iconic little function actually do? this function shall close underlying file-descriptors of stream. periodt. that's the whole job. it goes in, it closes the file-descriptors underneath your stream, and it leaves. no notes. πŸ’…


✨ RETURNS ✨

0 on success πŸ’– β€” otherwise -1 and errno is set 😭 (yes, errno, the classic, you know her, you've met her).

SEE ALSO: mongoc_stream_destroy() β€” go read that one next, iykyk 🫢

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” fr fr, they made this.


2009-present, MongoDB, Inc. β€” like, all the years. iconic.


and that's the page, bestie!! πŸŽ€ version 2.5.6, dated Oct 09, 2026 β€” go forth and close those streams responsibly, mwah πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from