QB_IPCS_EVENT_SEND(3)
π QB_IPCS_EVENT_SEND(3) β the libqb Programmer's Manual era π
okay so bestie, this is a page from the libqb Programmer's Manual, and it's literally all about one lil function that yeets an async event message over to the client. no cap, it's giving glow-up communication β¨
β¨ NAME β¨
qb_ipcs_event_send β send an asynchronous event message to the client. π¦
πΈ SYNOPSIS πΈ
#include <qb/qbipcs.h>
ssize_t qb_ipcs_event_send(
qb_ipcs_connection_t *c, /* connection instance */
const void *data, /* the message to send */
size_t size /* the size of the message */
);
like look at her. so clean. so demure. π
π PARAMS π
cβ connection instance. the whole vibe of which client we're talking to. πdataβ the message to send. literally the payload, the moment, the content. πsizeβ the size of the message. how many bytes we're serving. periodt.
π DESCRIPTION π
ngl bestie, this section is empty in the original. the manpage said "DESCRIPTION" and then just... didn't. main character silence. π so there's genuinely nothing more to tell you here β no extra lore, no secret tips, just vibes. β¨
π«Ά RETURN VALUE π«Ά
returns the size sent, or -errno for errors. so if it's a positive number, slay, that many bytes went out. if it's negative, something said "not today" and the error is encoded as a negative errno. π
π₯ NOTE π₯
okay this one matters, listen up. when send returns -EMSGSIZE, that means the msg is too large and it will never succeed. like, never ever, no retry is saving you, it's not a phase. π
to figure out the max msg size a client can actually be sent, use qb_ipcs_connection_get_buffer_size(). she's the one who knows the limits. π
π SEE ALSO π
a whole friend group, honestly. go read these too:
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_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_event_sendv(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 one came from the LIBQB crew, dated 2025-09-16, and it's QB_IPCS_EVENT_SEND(3) β go send some events, you 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