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
22 If user_data is passed, it is the application's responsibility to en‐
23 sure user_data remains valid for the lifetime of the client.
24
26 • client: A mongoc_client_t.
27
28 • initiator: A mongoc_stream_initiator_t.
29
30 • user_data: User supplied pointer for callback function.
31
33 MongoDB, Inc
34
36 2017-present, MongoDB, Inc
37
38
39
40
411.23.1 Oct 20, 2M0O2N2GOC_CLIENT_SET_STREAM_INITIATOR(3)