MONGOC_STREAM_WRITEV(3)
π MONGOC_STREAM_WRITEV(3) π
okay so this is the libmongoc manual page for MONGOC_STREAM_WRITEV(3), and itβs giving βwrite to a stream, but make it vectorizedβ energy β¨ bestie, letβs get into it.
β¨ SYNOPSIS β¨
ssize_t
mongoc_stream_writev (mongoc_stream_t *stream,
mongoc_iovec_t *iov,
size_t iovcnt,
int32_t timeout_msec);
π PARAMETERS π
streamβ Amongoc_stream_t. The stream weβre writing into, lowkey the main character here πiovβ A vector ofmongoc_iovec_t. Itβs the little lineup of things to write, fr fr.iovcntβ The number of items iniov. Basically, how many entries in that vector are getting their moment πtimeout_msecβ The number of milliseconds to block before indicating failure, or0for non-blocking. Negative values indicate the default timeout. Yeah, negative is its own whole vibe π
The mongoc_stream_writev() function shall perform a write to a mongoc_stream_t. Itβs modeled on the API and semantics of writev(), though the parameters map only loosely. So likeβ¦ cousins, not twins π«Ά
π¨ WARNING: The"default timeout"indicated by a negative value is both unspecified and unrelated to the documented default values for*TimeoutMSURI options. To specify a default timeout value for a*TimeoutMSURI option, use theMONGOC_DEFAULT_*constants defined inmongoc-client.h. No cap, this one matters π
π₯ RETURNS π₯
The number of bytes written on success, or -1 upon failure and errno is set. Thatβs the whole return story, periodt β¨
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
xoxo, bestie π«Ά β this oneβs from libmongoc 2.5.6, dated Oct 09, 2026 π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms