SYNOPSIS
int mongoc_stream_flush (mongoc_stream_t *stream);
DESCRIPTION
The mongoc_stream_flush() function shall flush a mongoc_stream(7). It mimics the API and semantics of fflush(3), forcing a write of user space buffered data.
Any given stream implementation may or may not implement flush().
RETURN VALUE
The mongoc_stream_flush() function returns zero on success. -1 on failure and errno is set.
ERRORS
As mongoc_stream_flush() just flushes results of mongoc_stream_writev(3), it may provide the same errors.
SEE ALSO
AUTHORS
This page was written by MongoDB Inc.