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β amongoc_cursor_t. literally the cursor. the main character of this whole function ngl πhostβ amongoc_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 π«Ά
π COPYRIGHT π
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
- 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