SYNOPSIS
int mongoc_stream_cork (mongoc_stream_t *stream);
DESCRIPTION
The mongoc_stream_cork() function shall cork a mongoc_stream(7).
This is meant to mimic the affect of TCP_CORK. I.e. avoid sending partial frames. This may or may not have an implementation in any given stream type.
Call mongoc_stream_uncork(3) after writing your data.
RETURN VALUE
The mongoc_stream_cork() function returns zero on success. On error, -1 is returned and errno is set appropriately.
ERRORS
Errors are specific to the underlying stream type.
SEE ALSO
AUTHORS
This page was written by MongoDB Inc.