MONGOC_SOCKET_SENDV(3)
π MONGOC_SOCKET_SENDV(3) β libmongoc, bestie
okay so this is libmongoc's page for MONGOC_SOCKET_SENDV(3) β yes, the manual name is right there, we're doing this. It's giving very specific Unix manual energy, and honestly? Iconic. π
β¨ SYNOPSIS β¨
Here's the signature, copy it exactly and do not freestyle:
ssize_t
mongoc_socket_sendv (mongoc_socket_t *sock,
mongoc_iovec_t *iov,
size_t iovcnt,
int64_t expire_at);
π PARAMETERS π
sockβ Amongoc_socket_t. That's the socket, periodt.iovβ Amongoc_iovec_t. Type check: slay.iovcntβ Asize_tcontaining the number of elements iniov. Literally the count, no cap.expire_atβ Aint64_twith absolute timeout in monotonic time. The monotonic clock is in microseconds and can be fetched using System Clock. Clock math bestie, iykyk. β°
π¦ DESCRIPTION π¦
Sends a vector of buffers to the destination β gathered-write main character energy. This uses sendmsg() when available to perform a gathered write. If IOV_MAX is reached, a fallback will be used. So it's got a backup plan, fr fr. β¨
π₯ RETURNS π₯
the number of bytes sent on success, or -1 on failure and errno is set. That's the vibe check: failure means -1 and errno gets set. π
π AUTHOR π
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
That's the whole page, bestie π«Ά β from libmongoc version 2.5.6, dated Oct 09, 2026, and the page is MONGOC_SOCKET_SENDV(3). Slay. π
π¦ 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