SYNOPSIS

mongoc_uri_t * mongoc_uri_new (const char *uri_string);

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

DESCRIPTION

The mongoc_uri_new() function shall create a new mongoc_uri(7). The uri_string should conform to mongoc_uri(7).

The mongoc_uri_new_for_host_port() function is a wrapper around mongoc_uri_new() which appends an appropriate port number.

RETURN VALUE

The mongoc_uri_new() function returns a new mongoc_uri(7). If the uri cannot be parsed, NULL is returned.

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.