SYNOPSIS

mongoc_stream_t *
mongoc_stream_tls_new (mongoc_stream_t  *base_stream,
                       mongoc_ssl_opt_t *opt,
                       int               client);

DESCRIPTION

The mongoc_stream_tls_new() function shall create a new mongoc_stream(7).

base_stream

The underlying IO stream to communicate over

opt

A set of ssl options

client

If the stream is meant to be a client. 1 for a client, 0 for a server.

RETURN VALUE

The mongoc_stream_tls_new() function returns a new mongoc_stream(7).

ERRORS

No errors are defined.

SEE ALSO

AUTHORS

This page was written by MongoDB Inc.