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