1MONGOC_HOST_LIST_T(3) libmongoc MONGOC_HOST_LIST_T(3)
2
3
4
6 typedef struct {
7 mongoc_host_list_t *next;
8 char host[BSON_HOST_NAME_MAX + 1];
9 char host_and_port[BSON_HOST_NAME_MAX + 7];
10 uint16_t port;
11 int family;
12 void *padding[4];
13 } mongoc_host_list_t;
14
16 The host and port of a MongoDB server. Can be part of a linked list:
17 for example the return value of mongoc_uri_get_hosts() when multiple
18 hosts are provided in the MongoDB URI.
19
20 SEE ALSO:
21 mongoc_uri_get_hosts() and mongoc_cursor_get_host().
22
23
25 MongoDB, Inc
26
28 2017-present, MongoDB, Inc
29
30
31
32
331.25.1 Nov 08, 2023 MONGOC_HOST_LIST_T(3)