1MONGOC_STREAM_SOCKET_NEW(3)        libmongoc       MONGOC_STREAM_SOCKET_NEW(3)
2
3
4

SYNOPSIS

6          mongoc_stream_t *
7          mongoc_stream_socket_new (mongoc_socket_t *socket)
8             BSON_GNUC_WARN_UNUSED_RESULT;
9

PARAMETERS

11socket: A mongoc_socket_t.
12
13       Creates  a  new  mongoc_stream_socket_t  using the mongoc_socket_t pro‐
14       vided.
15
16       WARNING:
17          This function transfers ownership of socket to the  newly  allocated
18          stream.
19

RETURNS

21       A  newly  allocated  mongoc_stream_socket_t  that  should be freed with
22       mongoc_stream_destroy() when no longer in use.
23

AUTHOR

25       MongoDB, Inc
26
28       2017-present, MongoDB, Inc
29
30
31
32
331.25.1                           Nov 08, 2023      MONGOC_STREAM_SOCKET_NEW(3)
Impressum