1MONGOC_CLIENT_SET_STREAM_INITIATOR(3l)ibmongMoOcNGOC_CLIENT_SET_STREAM_INITIATOR(3)
2
3
4
6 void
7 mongoc_client_set_stream_initiator (mongoc_client_t *client,
8 mongoc_stream_initiator_t initiator,
9 void *user_data);
10
11 The mongoc_client_set_stream_initiator() function shall associate a
12 given mongoc_client_t with a new stream initiator. This will completely
13 replace the default transport (buffered TCP, possibly with TLS). The
14 initiator should fulfill the mongoc_stream_t contract. user_data is
15 passed through to the initiator callback and may be used for whatever
16 run time customization is necessary.
17
18 If user_data is passed, it is the application's responsibility to en‐
19 sure user_data remains valid for the lifetime of the client.
20
22 • client: A mongoc_client_t.
23
24 • initiator: A mongoc_stream_initiator_t.
25
26 • user_data: User supplied pointer for callback function.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.25.1 Nov 08, 2M0O2N3GOC_CLIENT_SET_STREAM_INITIATOR(3)