MONGOC_APM_SER...ANGED_GET_HOST(3)
π MONGOC_APM_SER...ANGED_GET_HOST(3) π
okay bestie, welcome to the libmongoc manual page for MONGOC_APM_SER...ANGED_GET_HOST(3) β the header is giving truncated-title realness, but the function we're actually hyping is mongoc_apm_server_changed_get_host. let's go π«Ά
β¨ SYNOPSIS β¨
const mongoc_host_list_t *
mongoc_apm_server_changed_get_host (const mongoc_apm_server_changed_t *event);
So this one returns this event's host. The mongoc_host_list_t you get back is not part of a linked list β it is solely the server for this event. iconic, but also: the data is only valid in the scope of the callback that receives this event, so copy it if it will be accessed after the callback returns.
β οΈ scope check, bestie: that data is only valid in the callback's scope. after the callback returns? copy it first. no cap.
πΈ PARAMETERS πΈ
eventβ amongoc_apm_server_changed_t. that's the whole parameter vibe π
π¦ RETURNS π¦
A mongoc_host_list_t that should not be modified or freed β hands off, don't edit it, don't free it, just look respectfully π«Ά
π SEE ALSO π
Introduction to Application Performance Monitoring
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
later bestie!! this page is from libmongoc, version 2.5.6, dated Oct 09, 2024 β 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