1MONGOC_CLIENT_SET_STREAM_INITIATOR(3l)ibmongMoOcNGOC_CLIENT_SET_STREAM_INITIATOR(3)
2
3
4
6 mongoc_client_set_stream_initiator - mongoc_client_set_stream_initia‐
7 tor()
8
10 void
11 mongoc_client_set_stream_initiator (mongoc_client_t *client,
12 mongoc_stream_initiator_t initiator,
13 void *user_data);
14
15 The mongoc_client_set_stream_initiator() function shall associate a
16 given mongoc_client_t with a new stream initiator. This will completely
17 replace the default transport (buffered TCP, possibly with TLS). The
18 initiator should fulfill the mongoc_stream_t contract. user_data is
19 passed through to the initiator callback and may be used for whatever
20 run time customization is necessary.
21
23 · client: A mongoc_client_t.
24
25 · initiator: A mongoc_stream_initiator_t.
26
27 · user_data: User supplied pointer for callback function.
28
30 MongoDB, Inc
31
33 2017-present, MongoDB, Inc
34
35
36
37
381.16.2 Feb 25, 2M0O2N0GOC_CLIENT_SET_STREAM_INITIATOR(3)