WSLAY_EVENT_GET_READ_ENABLED(3)
π WSLAY_EVENT_GET_READ_ENABLED π
okay bestie so this is a wslay manpage, section 3, and it's literally all about one little function: wslay_event_get_read_enabled β the glow-up detector for your event-based API context. yes, that's the whole vibe. let's get into it π¦
β¨ NAME β¨
wslay_event_get_read_enabled β the little guy you call to query whether the event-based API context allows read operation π
πΈ SYNOPSIS πΈ
#include <wslay/wslay.h>
int wslay_event_get_read_enabled(wslay_event_context_ptr ctx)
like, that's it. that's the whole thing. so clean. so iconic. π
π DESCRIPTION π
so wslay_event_get_read_enabled() returns 1 if the event-based API context allows read operation, or return 0. that's the entire personality. a lil boolean moment, no cap. 1 means yes bestie, reads are allowed. 0 means nope, we're closed for business π
and here's the tea: after wslay_event_shutdown_read() is called, wslay_event_get_read_enabled() returns 0. so if you shut the read down, this function is gonna tell you reads are OFF, fr fr. the shutdown sticks and this is how you check it. π₯
π SEE ALSO π
wslay_event_shutdown_read()β the function that flips the vibe from1to0π
β AUTHOR β
Tatsuhiro Tsujikawa β the legend, the main character, the actual author π«Ά
π COPYRIGHT π
2024, 2015, Tatsuhiro Tsujikawa β periodt, protect that copyright π
okay that's the whole page bestie, you ate it up π
β¨ this was version @PACKAGE_VERSION@, dated Apr 22, 2024, and yeah, it lives in section 3 of the wslay manual as WSLAY_EVENT_GET_READ_ENABLED(3) β iykyk ππ¦
π¦ 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