DOKK / manpages / debian 10 / libmongoc-doc / mongoc_server_description_type.3.en
MONGOC_SERVER_DESCRIPTION_TYPE(3) MongoDB C Driver MONGOC_SERVER_DESCRIPTION_TYPE(3)

mongoc_server_description_type - mongoc_server_description_type()

const char *
mongoc_server_description_type (const mongoc_server_description_t *description);


description: A mongoc_server_description_t.

This function returns a string, one of the server types defined in the Server Discovery And Monitoring Spec:

  • Standalone
  • Mongos
  • PossiblePrimary
  • RSPrimary
  • RSSecondary
  • RSArbiter
  • RSOther
  • RSGhost
  • Unknown

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0