mongoc_server_description_ismaster(3)

MONGOC_SERVER_DESCRIPTION_ISMASTER(3) libmongoc MONGOC_SERVER_DESCRIPTION_ISMASTER(3)

Warning:

Deprecated since version 1.18.0: Use mongoc_server_description_hello_response() <> instead.



SYNOPSIS

const bson_t *
mongoc_server_description_ismaster (

const mongoc_server_description_t *description);


PARAMETERS

description: A mongoc_server_description_t <>.

DESCRIPTION

The client or client pool periodically runs a "hello" <https://www.mongodb.com/docs/manual/reference/command/hello/> command on each server, to update its view of the MongoDB deployment. Use mongoc_client_get_server_descriptions() <> and mongoc_server_description_hello_response() to get the most recent "hello" response.

RETURNS

A reference to a BSON document, owned by the server description. The document is empty if the driver is not connected to the server.

Author

MongoDB, Inc

Copyright

2009-present, MongoDB, Inc.

February 10, 2026 1.30.7