mongoc_client_set_stream_initiator man page

mongoc_client_set_stream_initiator() — None

Synopsis

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

The mongoc_client_set_stream_initiator(3) 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.

Parameters

client
A mongoc_client_t
initiator
A mongoc_stream_initiator_t
user_data
User supplied pointer for callback function.

Colophon

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

mongoc_client_t(3).

2016‐10‐19 MongoDB C Driver