mongoc_client_get_server_description - Man Page

mongoc_client_get_server_description()

Synopsis

mongoc_server_description_t *
mongoc_client_get_server_description (
   mongoc_client_t *client, uint32_t server_id) BSON_GNUC_WARN_UNUSED_RESULT;

Get information about the server specified by server_id.

Parameters

Returns

A mongoc_server_description_t that must be freed with mongoc_server_description_destroy(). If the server is no longer in the topology, returns NULL.

Author

MongoDB, Inc

Info

Sep 08, 2022 1.23.0 libmongoc