DOKK / manpages / debian 11 / libmongoc-doc / mongoc_client_get_server_description.3.en
MONGOC_CLIENT_GET_SERVER_DESCRIPTION(3) libmongoc MONGOC_CLIENT_GET_SERVER_DESCRIPTION(3)

mongoc_client_get_server_description - mongoc_client_get_server_description()

mongoc_server_description_t *
mongoc_client_get_server_description (mongoc_client_t *client,

uint32_t server_id);


Get information about the server specified by server_id.

  • client: A mongoc_client_t.
  • server_id: An opaque id specifying the server.

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.

MongoDB, Inc

2017-present, MongoDB, Inc

June 4, 2021 1.17.6