mongoc_stream_gridfs_new(3)

mongoc_stream_gridfs_new3

Usage

mongoc_stream_t *
mongoc_stream_gridfs_new (mongoc_gridfs_file_t *file);

Parameters

•

file: A mongoc_gridfs_file_t.

This function shall create a new mongoc_stream_t to read from and write to a GridFS file. GridFS files are created with mongoc_gridfs_create_file() or mongoc_gridfs_create_file_from_stream().

This function does not transfer ownership of file. Therefore, file must remain valid for the lifetime of this stream.

Returns

A newly allocated mongoc_stream_t if successful, otherwise NULL.

Note, the returned stream ignores read and write timeouts passed to mongoc_stream_readv(), mongoc_stream_writev(), and so on. It uses the "socketTimeoutMS" and "connectTimeoutMS" values from the MongoDB URI.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.