mongoc_topology_description_get_servers man page

mongoc_topology_description_get_servers ā€” mongoc_topology_description_get_servers()

Synopsis

mongoc_server_description_t **
mongoc_topology_description_get_servers (
   const mongoc_topology_description_t *td, size_t *n);

Fetches an array of mongoc_server_description_t structs for all known servers in the topology.

Parameters

Returns

A newly allocated array that must be freed with mongoc_server_descriptions_destroy_all.

Author

MongoDB, Inc

Info

Sep 15, 2017 1.8.0 MongoDB C Driver