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

PARAMETERS

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

RETURNS

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

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.17.6                           Jun 03, 2021      MONGOC_STREAM_GRIDFS_NEW(3)
Impressum