mongoc_uri_new_for_host_port(3)

mongoc_uri_new_for_host_port3

Usage

mongoc_uri_t *
mongoc_uri_new_for_host_port (const char *hostname, uint16_t port);

Parameters

•

hostname: A string containing the hostname.

•

port: A uint16_t.

Overview

Creates a new mongoc_uri_t based on the hostname and port provided.

Returns

Returns a newly allocated mongoc_uri_t that should be freed with mongoc_uri_destroy() when no longer in use.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.