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

SYNOPSIS

6          mongoc_stream_t *
7          mongoc_stream_gridfs_new (mongoc_gridfs_file_t *file)
8             BSON_GNUC_WARN_UNUSED_RESULT;
9

PARAMETERS

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

RETURNS

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

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.25.1                           Nov 08, 2023      MONGOC_STREAM_GRIDFS_NEW(3)
Impressum