mongoc_server_description_host - Man Page

Synopsis

const mongoc_host_list_t *
mongoc_server_description_host (const mongoc_server_description_t *description);

Parameters

Description

Return the server's host and port. This object is owned by the server description.

Returns

Changed in version 2.0.0: The return type changed from mongoc_host_list_t * to const mongoc_host_list_t *.

A reference to the server description's mongoc_host_list_t <>.

Author

MongoDB, Inc

Info

Apr 17, 2026 2.3.0 libmongoc