1MONGOC_STREAM_SOCKET_NEW(3) MongoDB C Driver MONGOC_STREAM_SOCKET_NEW(3)
2
3
4
6 mongoc_stream_socket_new - mongoc_stream_socket_new()
7
9 mongoc_stream_t *
10 mongoc_stream_socket_new (mongoc_socket_t *socket);
11
13 · socket: A mongoc_socket_t.
14
15 Creates a new mongoc_stream_socket_t using the mongoc_socket_t pro‐
16 vided.
17
18 WARNING:
19 This function transfers ownership of socket to the newly allocated
20 stream.
21
23 A newly allocated mongoc_stream_socket_t that should be freed with mon‐
24 goc_stream_destroy() when no longer in use.
25
27 MongoDB, Inc
28
30 2017-present, MongoDB, Inc
31
32
33
34
351.13.1 Jan 24, 2019 MONGOC_STREAM_SOCKET_NEW(3)