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

NAME

6       mongoc_stream_socket_new - mongoc_stream_socket_new()
7

SYNOPSIS

9          mongoc_stream_t *
10          mongoc_stream_socket_new (mongoc_socket_t *socket);
11

PARAMETERS

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

RETURNS

23       A newly allocated mongoc_stream_socket_t that should be freed with mon‐
24       goc_stream_destroy() when no longer in use.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.16.2                           Feb 25, 2020      MONGOC_STREAM_SOCKET_NEW(3)
Impressum