mongoc_uri_new_for_host_port man page

mongoc_uri_new_for_host_port ā€” mongoc_uri_new_for_host_port()

Synopsis

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

Parameters

Description

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.

Author

MongoDB, Inc

Info

Nov 17, 2017 1.8.2 MongoDB C Driver