WSLAY_EVENT_WANT_WRITE(3)
β¨ WSLAY_EVENT_WANT_WRITE(3) β¨
ok so this one lives in the wslay section of the manual β section 3, library functions, you know the vibe π
β and it's called WSLAY_EVENT_WANT_WRITE(3). let's get into it bestie π«Ά
πΈ NAME πΈ
wslay_event_want_write β the lil guy that tells you whether the library wants to send more data π
π¦ SYNOPSIS π¦
#include <wslay/wslay.h>
int wslay_event_want_write(wslay_event_context_ptr ctx)
π DESCRIPTION π
so wslay_event_want_write() is literally just there to let you know whether the library wants to send more data to the peer. that's it. that's the whole job. queen behavior honestly π
and why do you care? because it's useful for deciding whether to wait for a write event in your I/O event notification functions β yes, we're talking about the classics: select(2) and poll(2). so before you go blocking on a write fd like it's gonna text you back, ask this function first π
π RETURN VALUE π
- returns
1if the library wants to send more data to the peer π - returns
0if it doesn't π
π SEE ALSO π
wslay_event_want_read()wslay_event_shutdown_write()wslay_event_get_write_enabled()
π AUTHOR π
Tatsuhiro Tsujikawa β icon, legend, the moment π
π COPYRIGHT π
2024, 2015, Tatsuhiro Tsujikawa
ok that's the whole page bestie, no cap π§
this wasWSLAY_EVENT_WANT_WRITE(3)from the wslay manual, version@PACKAGE_VERSION@, datedApr 22, 2024. stream it, love it, use it responsibly πβ¨
π¦ 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