QB_IPCC_RECV(3)
π QB_IPCC_RECV(3) π
okay so bestie, we're in the libqb Programmer's Manual today and this little cutie is qb_ipcc_recv β she receives a response, and honestly? she's carrying the whole client-side conversation. pull up a chair. π«Ά
β¨ NAME β¨
qb_ipcc_recv β receive a response. that's it, that's the gig. π
πΈ SYNOPSIS πΈ
#include <qb/qbipcc.h>
ssize_t qb_ipcc_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 */
int32_t ms_timeout /* max time to wait for a response */
);
four args, one return value, zero drama. we love a clean signature. β¨
π PARAMS π
cβ your connection instance. the whole relationship, basically. πmsg_ptrβ a pointer to a message buffer that she's gonna receive into. bring your own buffer, she's not lending you one.msg_lenβ the size of that buffer. and listen, she needs the actual size, not the vibe of the size. πms_timeoutβ max time to wait for a response, in milliseconds. so she'll hang out, but only for that long. she's patient, not a doormat. π
π¦ DESCRIPTION π¦
okay so this section is literally empty in the source. no notes. nothing. the description is giving silence, and honestly? the NOTE below is doing all the heavy lifting. scroll down, bestie. π
π RETURN VALUE π
(size recv'ed, -errno == error)
so: on the good path you get back the size you received. on the bad path you get a negative errno. that's the whole mood ring. green flag or red flag, no in between. π₯
π NOTE π
thatmsg_ptrwill include aqb_ipc_response_headerat the top of the message.
fr fr, do not skip this one. the header is at the top of your message, so if you start reading from byte zero expecting pure payload, you're gonna have a bad time. the response header rides first. periodt. π
β SEE ALSO β
the whole friend group, alphabetically arranged-ish, all iconic, all worth a follow:
qb_ipcc_send(3)qb_ipcc_sendv_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.
that's the whole page, bestie, no cap. this was LIBQB, dated 2025-09-16, and you just read QB_IPCC_RECV(3). go receive something slay. πβ¨π¦
π¦ 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