WSLAY_EVENT_SHUTDOWN_WRITE(3)
π WSLAY_EVENT_SHUTDOWN_WRITE(3) π
okay bestie, gather round, because we're talking about the wslay manual β yes, section 3, the library-functions girly β and specifically the icon that is wslay_event_shutdown_write. she's small, she's mighty, she's the "we're done here" button for your websocket's outgoing chatter. no cap. π
β¨ NAME β¨
wslay_event_shutdown_write β Disable write operation π«βοΈ
like, she literally turns the writing off. that's the whole job. and she does it flawlessly, periodt.
πΈ SYNOPSIS πΈ
#include <wslay/wslay.h>
void wslay_event_shutdown_write(wslay_event_context_ptr ctx)
look at her. one include, one function, one argument, returns void because she has nothing to report back β she just does the thing. main character energy fr fr. π
π¦ DESCRIPTION π¦
wslay_event_shutdown_write() stops the event-based API context from sending any further data to the peer. that's it. that's the tweet. π¦
so the way it works: you hand her a ctx, and from that moment on, that event-based API context is done sending β no more data goes out to the peer. she doesn't negotiate, she doesn't ask twice, she just shuts the write side down. iconic. π
ngl it's giving "we're closing the group chat, nobody text the peer again." and honestly? sometimes you need that. π
lowkey important: this is about not sending further data to the peer. it doesn't say anything else about what happens to the context β so don't go inventing extra behaviour in your head, bestie. the docs say what they say. π«Ά
π SEE ALSO π
wslay_event_get_write_enabled()β the lil bestie you check in with when you wanna know if writing is still enabled. π΅οΈββοΈ
π AUTHOR π
Tatsuhiro Tsujikawa β the legend, the moment, the actual author. bow down. πββοΈβ¨
π COPYRIGHT π
2024, 2015, Tatsuhiro Tsujikawa β that's the copyright notice, keep it cute, keep it credited. π
and that's the whole page, bestie!! πΈ version @PACKAGE_VERSION@, dated Apr 22, 2024, straight from the wslay crew β WSLAY_EVENT_SHUTDOWN_WRITE(3) out. slay, 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