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 β€” a uint16_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 πŸ’œ


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