MONGOC_CURSOR_GET_HOST(3)

πŸ’… MONGOC_CURSOR_GET_HOST(3) πŸ’…

okay so bestie, welcome to the libmongoc corner of the manual, where we talk about MONGOC_CURSOR_GET_HOST β€” yes that's the whole entire name, she's long but she's worth it πŸŽ€


✨ SYNOPSIS ✨

void
mongoc_cursor_get_host (mongoc_cursor_t *cursor, mongoc_host_list_t *host);

that's it. that's the whole vibe. void return, two pointers, no drama πŸ’…


🫢 PARAMETERS 🫢

  • cursor β€” a mongoc_cursor_t. literally the cursor. the main character of this whole function ngl πŸ‘‘
  • host β€” a mongoc_host_list_t. this is the out parameter, so she's the one getting filled in, not the one doing the filling. iykyk πŸ¦‹

🌸 DESCRIPTION 🌸

so what does she actually do? she fetches the MongoDB host that the cursor is communicating with, and drops it right into the host out parameter. that's the whole thing. that's the assignment and she ate πŸ”₯

like… no cap, it's that simple. cursor in, host comes out through the out param, you get your answer. iconic behaviour fr fr ✨


πŸ’– AUTHOR πŸ’–

MongoDB, Inc β€” the OGs, the founders of the whole situation 🫢


2009-present, MongoDB, Inc. β€” yeah she's been around a minute, respect the legacy πŸ‘‘


bestie reminder: this is the libmongoc page for version 2.5.6, dated Oct 09, 2026 β€” so if you're reading this in the future, hi, you're exactly on time πŸ¦‹πŸ’œβœ¨
πŸ“¦ where this page comes from