1MONGOC_URI_GET_HOSTS(3)            libmongoc           MONGOC_URI_GET_HOSTS(3)
2
3
4

NAME

6       mongoc_uri_get_hosts - mongoc_uri_get_hosts()
7

SYNOPSIS

9          const mongoc_host_list_t *
10          mongoc_uri_get_hosts (const mongoc_uri_t *uri);
11

PARAMETERS

13uri: A mongoc_uri_t.
14

DESCRIPTION

16       Fetches  a  linked  list  of  hosts  that  were defined in the URI (the
17       comma-separated host section).
18

RETURNS

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

AUTHOR

24       MongoDB, Inc
25
27       2017-present, MongoDB, Inc
28
29
30
31
321.20.0                           Nov 18, 2021          MONGOC_URI_GET_HOSTS(3)
Impressum