1MONGOC_STREAM_GRIDFS_NEW(3)        libmongoc       MONGOC_STREAM_GRIDFS_NEW(3)
2
3
4

NAME

6       mongoc_stream_gridfs_new - mongoc_stream_gridfs_new()
7

SYNOPSIS

9          mongoc_stream_t *
10          mongoc_stream_gridfs_new (mongoc_gridfs_file_t *file)
11             BSON_GNUC_WARN_UNUSED_RESULT;
12

PARAMETERS

14file: A mongoc_gridfs_file_t.
15
16       This function shall create a new mongoc_stream_t to read from and write
17       to    a    GridFS    file.    GridFS    files    are    created    with
18       mongoc_gridfs_create_file() or mongoc_gridfs_create_file_from_stream().
19
20       This function does not transfer ownership of file. Therefore, file must
21       remain valid for the lifetime of this stream.
22

RETURNS

24       A newly allocated mongoc_stream_t if successful, otherwise NULL.
25
26       Note, the returned stream ignores read and  write  timeouts  passed  to
27       mongoc_stream_readv(),  mongoc_stream_writev(),  and so on. It uses the
28       "socketTimeoutMS" and "connectTimeoutMS" values from the MongoDB URI.
29

AUTHOR

31       MongoDB, Inc
32
34       2017-present, MongoDB, Inc
35
36
37
38
391.24.3                           Aug 17, 2023      MONGOC_STREAM_GRIDFS_NEW(3)
Impressum