WSLAY_EVENT_GET_CLOSE_SENT(3)
β¨ WSLAY_EVENT_GET_CLOSE_SENT(3) β¨
okay bestie, welcome to the wslay section 3 manual, and today's main character is a tiny little query function that tells you if you've already said bye π
π NAME π
wslay_event_get_close_sent β the vibe check that answers: has a close control frame been sent to the peer yet?? π¦
πΈ SYNOPSIS πΈ
#include <wslay/wslay.h>
int wslay_event_get_close_sent(wslay_event_context_ptr ctx)
like yes, that's the whole thing. short. iconic. no notes. π
π DESCRIPTION π
okay so here's the tea β β wslay_event_get_close_sent() looks at your ctx and tells you one very specific thing:
- it returns
1if a close control frame has been sent to the peer β - or it returns
0if it hasn't β
that's it. that's the whole function. it does not do anything else, it does not pass go, it does not collect $200. it just tells you whether the goodbye has left the building πͺπ¨
ngl for a one-liner of a return value she really ate. obsessed. π
π SEE ALSO π
wslay_event_get_close_sent()
(not me noticing the SEE ALSO is just... the same function. she's her own reference. main character energy fr fr πβ¨)
π«Ά AUTHOR π«Ά
Tatsuhiro Tsujikawa β the legend who wrote all of this, give them their flowers π
π COPYRIGHT π
2024, 2015, Tatsuhiro Tsujikawa
reminder bestie:ctxis awslay_event_context_ptr, so keep it valid β this function is a simple query and doesn't return a fancy error code, just the1or the0π
and that's a wrap!! π this was page @PACKAGE_VERSION@, dated Apr 22, 2024, straight out of the wslay manual, section 3 β bye pookie, go forth and check your close frames π¦πβ¨
π¦ 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