MONGOC_STREAM_SOCKET_NEW(3)
β¨ mongoc_stream_socket_new(3) β the socket-to-stream glow-up β¨
okay bestie, welcome to libmongoc, where we take a socket and wrap it in a stream like it's getting a whole new main character outfit. This page is mongoc_stream_socket_new(3), and the vibe is: one function, one socket, one new stream, and some ownership tea you need to sip. π
πΈ SYNOPSIS πΈ
mongoc_stream_t *
mongoc_stream_socket_new (mongoc_socket_t *socket);
π PARAMETERS π
socketβ amongoc_socket_t.
Creates a new mongoc_stream_socket_t using the mongoc_socket_t you provide. It's giving βhere's my socket, now make it a stream,β and the function absolutely ate. β¨
WARNING: This function transfers ownership of socket to the newly allocated stream. So bestie, once you hand it over, that socket is not yours to free anymore β no cap. π«Ά
π¦ RETURNS π¦
A newly allocated mongoc_stream_socket_t that should be freed with mongoc_stream_destroy() when no longer in use. Like, when you're done with it, call destroy β don't just ghost it. π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
That's the whole page, periodt. This libmongoc 2.5.6 manual page is dated Oct 09, 2026 β now go forth and stream responsibly. ππ
π¦ 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