mongoc_host_list_t *
Contents
Copyright
2009-present, MongoDB, Inc.
1.30.4 Jun 08, 2025 MONGOC_SERVER_DESCRIPTION_HOST(3)
Description
Return the server's host and port. This object is owned by the server description.
Parameters
• description: A mongoc_server_description_t.
Returns
A reference to the server description's mongoc_host_list_t, which you must not modify or free.
Synopsis
mongoc_host_list_t *
mongoc_server_description_host (const mongoc_server_description_t *description);
