![]() |
![]()
| ![]() |
![]()
SYNOPSISmongoc_server_description_t ** mongoc_client_get_server_descriptions (const mongoc_client_t *client, Fetches an array of mongoc_server_description_t structs for all known servers in the topology. Returns no servers until the client connects. Returns a single server if the client is directly connected, or all members of a replica set if the client's MongoDB URI includes a "replicaSet" option, or all known mongos servers if the MongoDB URI includes a list of them. void show_servers (const mongoc_client_t *client) { PARAMETERS
RETURNSA newly allocated array that must be freed with mongoc_server_descriptions_destroy_all(). AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|