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 ⭐

  • -1 if 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:


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