WSLAY_EVENT_CO...LLOWED_RSV_BITS(3)

πŸ“¦
version 1.1.1 Β· 4 versions
, in ubuntu noble, ubuntu questing

πŸ’– wslay_event_config_set_allowed_rsv_bits β€” from the wslay girlies, section 3 ✨

okay so bestie, welcome to the wslay manual, section 3 πŸ¦‹ this one's a little cutie and honestly a quick read, so let's go πŸ’…


🌸 NAME 🌸

wslay_event_config_set_allowed_rsv_bits β€” Set allowed reserved bits πŸ‘‘


✨ SYNOPSIS ✨

#include <wslay/wslay.h>

void wslay_event_config_set_allowed_rsv_bits(wslay_event_context_ptr
ctx, uint8_t rsv)

πŸŽ€ DESCRIPTION πŸŽ€

okay so wslay_event_config_set_allowed_rsv_bits() sets a bit mask of allowed reserved bits (RSVs, and yes they're called that, iconic). Currently the only permitted values are WSLAY_RSV1_BIT, which allows the PMCE extension (see RFC 7692, she has lore πŸ“œ), or WSLAY_RSV_NONE if you wanna disable it entirely.

and like, real talk β€” when bits other than WSLAY_RSV1_BIT are set in rsv, those bits are simply ignored. no drama, no error, they just ✨ do not get looked at ✨.

the value you set here gets used to check the validity of reserved bits for both transmission and reception of WebSocket frames 🌈 so it's lowkey doing double duty, main character energy fr fr.


πŸ’œ RETURN VALUE πŸ’œ

she always succeeds 😌 there is no return value. ate and left no crumbs, no notes.


🌟 SEE ALSO 🌟

  • wslay_event_queue_fragmented_msg()
  • wslay_event_queue_fragmented_msg_ex()

🫢 AUTHOR 🫢

Tatsuhiro Tsujikawa πŸ’–


2024, 2015, Tatsuhiro Tsujikawa


and that's the whole page, bestie πŸŽ€ shoutout to the wslay crew β€” this one's stamped @PACKAGE_VERSION@ and dated Apr 22 (the year got its last digits cut off in the footer, ngl kinda slay of it to leave us guessing πŸ’€), so go forth and configure those reserved bits, iykyk πŸ¦‹βœ¨

πŸ“¦ where this page comes from