MONGOC_SERVER_DESCRIPTION_TYPE(3) libmongoc MONGOC_SERVER_DESCRIPTION_TYPE(3)

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
  • LoadBalancer
  • RSPrimary
  • RSSecondary
  • RSArbiter
  • RSOther
  • RSGhost
  • Unknown

MongoDB, Inc

2017-present, MongoDB, Inc

March 31, 2024 1.26.0