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 β€” A mongoc_socket_t. That's the socket, periodt.
  • iov β€” A mongoc_iovec_t. Type check: slay.
  • iovcnt β€” A size_t containing the number of elements in iov. Literally the count, no cap.
  • expire_at β€” A int64_t with 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

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