1MONGOC_URI_NEW_FOR_HOST_PORT(3) libmongoc MONGOC_URI_NEW_FOR_HOST_PORT(3)
2
3
4
6 mongoc_uri_t *
7 mongoc_uri_new_for_host_port (const char *hostname, uint16_t port);
8
10 • hostname: A string containing the hostname.
11
12 • port: A uint16_t.
13
15 Creates a new mongoc_uri_t based on the hostname and port provided.
16
18 Returns a newly allocated mongoc_uri_t that should be freed with
19 mongoc_uri_destroy() when no longer in use.
20
22 MongoDB, Inc
23
25 2017-present, MongoDB, Inc
26
27
28
29
301.25.1 Nov 08, 2023 MONGOC_URI_NEW_FOR_HOST_PORT(3)