MONGOC_URI_NEW_FOR_HOST_PORT(3)
π MONGOC_URI_NEW_FOR_HOST_PORT π
okay bestie, so this is a page from the libmongoc manual, and it's about mongoc_uri_new_for_host_port β yeah that's a long name, she's got main character energy for sure π
β¨ SYNOPSIS β¨
mongoc_uri_t *
mongoc_uri_new_for_host_port (const char *hostname, uint16_t port);
literally the whole vibe right there, no cap π¦
πΈ PARAMETERS πΈ
hostnameβ a string holding the hostname πportβ auint16_t, that's it, that's the whole deal π«Ά
π§ DESCRIPTION π§
so this function creates a brand new mongoc_uri_t, and it builds it based on the hostname and the port you hand it. that's the tea π₯
β RETURNS β
it hands you back a newly allocated mongoc_uri_t β and bestie, listen, you gotta free it with mongoc_uri_destroy() when you're done with it, don't just leave her hanging π periodt.
π AUTHOR π
MongoDB, Inc π
π COPYRIGHT π
2009-present, MongoDB, Inc.
k that's the whole page, slay π β¨ and just so u know this was version 2.5.6 from Oct 09, 2026, mwah ππ
π¦ 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