1MONGOC_URI_GET_HOSTS(3) libmongoc MONGOC_URI_GET_HOSTS(3)
2
3
4
6 const mongoc_host_list_t *
7 mongoc_uri_get_hosts (const mongoc_uri_t *uri);
8
10 • uri: A mongoc_uri_t.
11
13 Fetches a linked list of hosts that were defined in the URI (the
14 comma-separated host section).
15
17 A linked list of mongoc_host_list_t structures that should not be modi‐
18 fied or freed. Returns NULL if this URI's scheme is "mongodb+srv://".
19
21 MongoDB, Inc
22
24 2017-present, MongoDB, Inc
25
26
27
28
291.25.1 Nov 08, 2023 MONGOC_URI_GET_HOSTS(3)