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             BSON_GNUC_WARN_UNUSED_RESULT;
12

PARAMETERS

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

RETURNS

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

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.20.0                           Nov 18, 2021      MONGOC_STREAM_SOCKET_NEW(3)
Impressum