QB_IPCC_SEND(3)
β¨ QB_IPCC_SEND(3) β¨
okay bestie, gather round, because today we're learning how to send a message π β and this is page qb_ipcc_send from the libqb Programmer's Manual. yes, the whole thing. no skipping. π
πΈ NAME πΈ
qb_ipcc_send β Send a message. that's it, that's the whole job, and it's lowkey iconic for it π«Ά
π SYNOPSIS π
#include <qb/qbipcc.h>
ssize_t qb_ipcc_send(
qb_ipcc_connection_t *c, /* connection instance */
const void *msg_ptr, /* pointer to a message to send */
size_t msg_len /* the size of the message */
);
look at her. three little params and a return type, main character energy fr fr β¨
π¦ PARAMS π¦
cβ the connection instance π« like, which connection are we even talking to, babemsg_ptrβ pointer to a message to send π¨ the actual vibe you're yeeting across the wiremsg_lenβ the size of the message π measure it, don't guess
π DESCRIPTION π
ngl, the original page leaves this section blank β there's literally nothing here π so I'm not gonna make stuff up, because that's not the vibe. everything you actually need lives in PARAMS, RETURN VALUE and that NOTE down there. periodt. π
β RETURN VALUE β
(size sent, -errno == error)
so: you get back how many bytes you sent π β or a negative errno if it went sideways π
π¨ NOTE π¨
okay this one is IMPORTANT, do not scroll past it, bestie π€
the msg_ptr must include a qb_ipc_request_header at the top of the message. the server is gonna read that size field to figure out how much to recv. no header, no party. it's giving "read the instructions before you build the IKEA shelf" π§
π SEE ALSO π
sibling pages, all of them, exactly as listed, go read them when you're done here:
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_sendv(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, bestie, you ate that π
β¨ this was libqb, dated 2025-09-16, filed under QB_IPCC_SEND(3) β go send some messages, 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