QB_IPCC_SENDV(3)
π qb_ipcc_sendv β from the libqb Programmer's Manual (section 3) π
okay bestie, gather round, because this one is short and sweet but it's load-bearing. qb_ipcc_sendv is the "send a message, but with iovecs" girlie. Scatter-gather energy. Periodt. β¨
β¨ NAME β¨
qb_ipcc_sendv β Send a message (iovec).
β¨ SYNOPSIS β¨
#include <qb/qbipcc.h>
ssize_t qb_ipcc_sendv(
qb_ipcc_connection_t *c, /* connection instance */
const struct iovec *iov, /* pointer to an iovec struct to send */
size_t iov_len /* the number of iovecs used */
);
β¨ PARAMS β¨
cβ the connection instance, aka your whole entire situationship with the server π«Άiovβ pointer to aniovecstruct you wanna send πiov_lenβ how many iovecs you're actually using π
β¨ DESCRIPTION β¨
ngl, the original page justβ¦ leaves this section blank. Not a single word. The silence is giving mysterious main character energy πβ¨ but fr fr, there's nothing here to tell you, so I'm not about to make stuff up. Scroll down to NOTE, that's where the real tea is π
β¨ RETURN VALUE β¨
(size sent, -errno == error)
So like β it hands you back the number of bytes sent, and if things go sideways you get -errno instead. A negative number here is not a vibe check you passed, bestie π
β¨ NOTE β¨
π¨ listen up, this is the important one:iov[0]must be aqb_ipc_request_header. The server is gonna read the size field to figure out how much torecv. No header in slot zero, no message. It's giving strict, but that's just how it is π
β¨ SEE ALSO β¨
your reading list, bestie, go be nosy ππ
qb_ipcc_send(3)qb_ipcc_sendv_recv(3)qb_ipcc_recv(3)qb_ipcc_event_recv(3)qb_ipcc_connect_async(3)qb_ipcc_fc_enable_max_set(3)qb_ipcc_is_connected(3)qb_ipcc_connect_continue(3)qb_ipcc_auth_get(3)qb_ipcc_context_set(3)qb_ipcc_context_get(3)qb_ipcc_verify_dgram_max_msg_size(3)qb_ipcc_get_buffer_size(3)qb_ipcc_connect(3)qb_ipcc_disconnect(3)qb_ipcc_fd_get(3)
β¨ COPYRIGHT β¨
Copyright (C) 2010-2020 Red Hat, Inc. π«Ά
and that's the whole page, no crumbs left π so like, credit where it's due: this is from the libqb programmer's manual, dated 2025-09-16. mwah, go send some iovecs responsibly, ily ππ¦
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms