SYNOPSIS
#include <mongoc.h> mongoc_stream_t *mongoc_stream_socket_new (mongoc_socket_t *socket);
DESCRIPTION
The mongoc_stream_socket_new() function shall create a new mongoc_stream(7), taking ownership of the mongoc_socket_t.
- socket
-
The mongoc_socket_t for the stream to take ownership of.
RETURN VALUE
This function always returns a newly allocated mongoc_stream_t instance. It should be freed with mongoc_stream_destroy().
AUTHORS
This page was written by MongoDB, Inc.