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

mongoc_client_get_max_message_size - mongoc_client_get_max_message_size()

int32_t
mongoc_client_get_max_message_size (mongoc_client_t *client);


The mongoc_client_get_max_message_size() returns the maximum message size allowed by the cluster. Until a connection has been made, this will be the default of 40Mb.

WARNING:

This function is deprecated and should not be used in new code.


client: A mongoc_client_t.

The server provided max message size, or 40Mb if no connection has been established.

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0