1MONGOC_URI_NEW_FOR_HOST_PORT(3) libmongoc MONGOC_URI_NEW_FOR_HOST_PORT(3)
2
3
4
6 mongoc_uri_new_for_host_port - mongoc_uri_new_for_host_port()
7
9 mongoc_uri_t *
10 mongoc_uri_new_for_host_port (const char *hostname, uint16_t port);
11
13 • hostname: A string containing the hostname.
14
15 • port: A uint16_t.
16
18 Creates a new mongoc_uri_t based on the hostname and port provided.
19
21 Returns a newly allocated mongoc_uri_t that should be freed with mon‐
22 goc_uri_destroy() when no longer in use.
23
25 MongoDB, Inc
26
28 2017-present, MongoDB, Inc
29
30
31
32
331.20.0 Nov 18, 2021 MONGOC_URI_NEW_FOR_HOST_PORT(3)