QB_IPCC_V...X_MSG_SIZE(3)
π QB_IPCC_V...X_MSG_SIZE(3) π
okay bestie, welcome to the libqb Programmer's Manual β¨ this one's short and sweet but it's doing real work, so let's get into it π«Ά
β¨ NAME β¨
qb_ipcc_verify_dgram_max_msg_size β the lil function that goes and pokes at your kernel dgram socket buffers to figure out the biggest single msg that can actually make it through, all the way up to the max_msg_size you hand it πΈ
like, it's a vibe check for your socket buffers, fr fr π
π SYNOPSIS π
#include <qb/qbipcc.h>
int32_t qb_ipcc_verify_dgram_max_msg_size(
size_t max_msg_size /* biggest msg size. */
);
π¦ PARAMS π¦
max_msg_sizeβ the biggest msg size. that's it. that's the whole param. she's simple and she knows what she wants π
π DESCRIPTION π
so what does she actually do? she tests the kernel dgram socket buffers and verifies the largest size a single msg can be, up to the max_msg_size value you gave her.
and, iconic detail: she rounds down to the nearest 1k. so don't come at her with a weird non-round number and expect it back, because you will not be getting it back π
β RETURN VALUE β
-1if the max size can not be detected π (she tried, okay?)- a positive value representing the largest single msg β up to
max_msg_sizeβ that can successfully be sent over a unix dgram socket π₯
π SEE ALSO π
the whole friend group, no cap:
qb_ipcc_send(3)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_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 π§ stay obsessed with your socket buffers, they're doing more for you than you think π
LIBQB Β· 2025-09-16 Β· mwah, go read another manpage π β¨
π¦ 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