WSLAY_EVENT_GET_STATUS_CODE_SENT(3)
π WSLAY_EVENT_GET_STATUS_CODE_SENT(3) π
okay bestie, welcome to the wslay manual, section 3 β yes the whole thing is a lil library manual and this page is about ONE tiny icon of a function, and honestly? she deserves the spotlight. π
β¨ NAME β¨
wslay_event_get_status_code_sent β the girl who tells you which status code got sent in a close control frame π
π¦ SYNOPSIS π¦
#include <wslay/wslay.h>
uint16_t wslay_event_get_status_code_sent(wslay_event_context_ptr ctx)
look at her. one include, one line, no drama. iconic behavior. β¨
πΈ DESCRIPTION πΈ
so basically wslay_event_get_status_code_sent() returns the status code that got sent in a close control frame. that's it. that's the whole job. she's a one-task queen and she ate. π
but wait, there's lore:
- if no close control frame has been sent, she hands you back
WSLAY_CODE_ABNORMAL_CLOSURE. π like, nothing went out, so that's what you get, no cap. - if a close control frame has been sent but it has no status code, she gives you
WSLAY_CODE_NO_STATUS_RCVD. π«Ά
fr fr, two little special cases and that's the entire vibe check. ngl this function is lowkey the chillest one on the whole page.
π SEE ALSO π
wslay_event_get_status_code_received()β her sister!! the "what came IN" girl to this "what went OUT" girl. main character duo energy, iykyk. π¦
π AUTHOR π
Tatsuhiro Tsujikawa β the legend, the moment, the originator. we stan. π
β COPYRIGHT β
2024, 2015, Tatsuhiro Tsujikawa β periodt, that's the copyright, keep it in your heart. π
and that's the whole page, bestie!! π this was pulled from @PACKAGE_VERSION@, dated Apr 22, 20, and it's a WSLAY_EVENT_GET_STATUS_CODE_SENT(3) situation from the wslay manual, mwah, bye!! π
β¨
π¦ where this page comes from
- ubuntu noble: libwslay-doc 1.1.1-4build1 Β· MIT
- ubuntu questing: libwslay-doc 1.1.1-4build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms