mongoc_client_set_stream_initiator(3)

mongoc_client_set_stream_initiator3

Usage

void
mongoc_client_set_stream_initiator (mongoc_client_t *client,
                                    mongoc_stream_initiator_t initiator,
                                    void *user_data);

The mongoc_client_set_stream_initiator() function shall associate a given mongoc_client_t with a new stream initiator. This will completely replace the default transport (buffered TCP, possibly with TLS). The initiator should fulfill the mongoc_stream_t contract. user_data is passed through to the initiator callback and may be used for whatever run time customization is necessary.

If user_data is passed, it is the application's responsibility to ensure user_data remains valid for the lifetime of the client.

Parameters

•

client: A mongoc_client_t.

•

initiator: A mongoc_stream_initiator_t.

•

user_data: User supplied pointer for callback function.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.