MONGOC_CLIENT_SET_STREAM_INITIATOR(3) | MongoDB C Driver | MONGOC_CLIENT_SET_STREAM_INITIATOR(3) |
mongoc_client_set_stream_initiator - mongoc_client_set_stream_initiator()
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.
MongoDB, Inc
2017-present, MongoDB, Inc
February 23, 2019 | 1.14.0 |