QB_IPCS_EVENT_SENDV(3)
π qb_ipcs_event_sendv β from the libqb Programmer's Manual (section 3) π
okay bestie, gather round, because we're about to send an asynchronous event message to the client and it's gonna be so smooth π¦
β¨ NAME β¨
qb_ipcs_event_sendv β Send an asynchronous event message to the client.
πΈ SYNOPSIS πΈ
#include <qb/qbipcs.h>
ssize_t qb_ipcs_event_sendv(
qb_ipcs_connection_t *c, /* connection instance */
/*
* the iovec struct that points to the message to send
*/
const struct iovec *iov,
size_t iov_len /* the number of iovecs. */
);
π PARAMS π
cβ connection instance. the connection we're sliding into, basically πiovβ the iovec struct that points to the message to sendiov_lenβ the number of iovecs.
π«Ά DESCRIPTION π«Ά
ngl, the original page leaves this one blank β no description text here, and I'm not about to make stuff up (that would be so not it). everything you need lives in PARAMS, RETURN VALUE, and NOTE, bestie. π§
π RETURN VALUE π
size sent or -errno for errors β¨
like, you get the size that went out, or you get a negative errno and a little vibe check failure. periodt.
π₯ NOTE π₯
When send returns -EMSGSIZE, this means the msg is too large and will never succeed. π
not "try again later", not "maybe next time" β never. so if you see -EMSGSIZE, don't be out here retrying, it's giving delulu.
To determine the max msg size a client can be sent, use qb_ipcs_connection_get_buffer_size(). π
π SEE ALSO π
the whole friend group, fr fr:
qb_ipcs_response_send(3), qb_ipcs_ref(3), qb_ipcs_unref(3), qb_ipcs_connection_auth_set(3), qb_ipcs_service_context_get(3), qb_ipcs_connection_ref(3), qb_ipcs_connection_next_get(3), qb_ipcs_stats_get(3), qb_ipcs_connection_unref(3), qb_ipcs_context_set(3), qb_ipcs_poll_handlers_set(3), qb_ipcs_request_rate_limit(3), qb_ipcs_disconnect(3), qb_ipcs_connection_first_get(3), qb_ipcs_enforce_buffer_size(3), qb_ipcs_destroy(3), qb_ipcs_event_send(3), qb_ipcs_connection_stats_get_2(3), qb_ipcs_service_context_set(3), qb_ipcs_connection_stats_get(3), qb_ipcs_service_id_get(3), qb_ipcs_context_get(3), qb_ipcs_connection_get_buffer_size(3), qb_ipcs_create(3), qb_ipcs_run(3), qb_ipcs_connection_service_context_get(3), qb_ipcs_response_sendv(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the whole page, bestie!! this absolute icon dropped under the LIBQB name on 2025-09-16, and the page itself is QB_IPCS_EVENT_SENDV(3) πβ¨ go send some events, you've got this π«Ά
π¦ 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