QB_IPCC_EVENT_RECV(3)
π qb_ipcc_event_recv(3) β libqb Programmer's Manual
okay bestie, gather round, because today we're receiving an event off a libqb IPC connection and it's lowkey iconic. this is qb_ipcc_event_recv from the libqb programmer's manual and she's about to hand you a message. periodt. π
β¨ NAME β¨
qb_ipcc_event_recv β Receive an event.
πΈ SYNOPSIS πΈ
#include <qb/qbipcc.h>
ssize_t qb_ipcc_event_recv(
qb_ipcc_connection_t *c, /* connection instance */
void *msg_ptr, /* pointer to a message buffer to receive into */
size_t msg_len, /* the size of the buffer */
/*
* time in milliseconds to wait for a message 0 == no wait, negative ==
* block, positive == wait X ms.
*/
int32_t ms_timeout
);
like. look at her. four args, one return value, zero drama. π
π«Ά PARAMS π«Ά
cβ your connection instance. the whole vibe. the main character of this function call, honestly.msg_ptrβ a pointer to a message buffer that the message is gonna be received into. she's the vessel. the container. the little cup you're catching the event in. πmsg_lenβ the size of that buffer. gotta tell her how much room she's working with, no cap.ms_timeoutβ time in milliseconds to wait for a message. and here's the breakdown bestie:0== no wait- negative == block
- positive == wait X ms
π DESCRIPTION π
soβ¦ this section is literally empty in the original. like, nothing. a blank. an empty room with great lighting. i'm not gonna invent facts about a function to fill the silence, that's not the move. the details you need live in PARAMS, RETURN VALUE and NOTE, and they ate. β¨
π RETURN VALUE π
size of the message, or error (-errno).
that's it. that's the whole thing. if it worked you get a size, if it didn't you get a negative errno and a little heartbreak. π
β οΈ NOTE β οΈ
that msg_ptr will include a qb_ipc_response_header at the top of the message. so heads up β the buffer you get back isn't just the payload, there's a whole header sitting at the top of it. plan your pointer math accordingly, iykyk. π
π SEE ALSO π
qb_ipcc_send(3)qb_ipcc_sendv_recv(3)qb_ipcc_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. QB_IPCC_EVENT_RECV(3) from LIBQB, dated 2025-09-16. go receive your events, drink some water, and slay. mwah. ππ¦
π¦ 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