DOKK / manpages / debian 10 / libwslay-doc / wslay_event_want_write.3.en
WSLAY_EVENT_WANT_WRITE(3) wslay WSLAY_EVENT_WANT_WRITE(3)

wslay_event_want_write - Tell whether the library wants to send more data

#include <wslay/wslay.h>


wslay_event_want_write() is used to know whether the library want to send more data to peer.

This is useful to decide whether to wait for write event in I/O event notification functions such as select(2) and poll(2).

wslay_event_want_write() returns 1 if the library want to send more data to peer, or returns 0.

wslay_event_want_read(), wslay_event_shutdown_write(), wslay_event_get_write_enabled()

Tatsuhiro Tsujikawa

2018, 2015, Tatsuhiro Tsujikawa

September 30, 2018 @PACKAGE_VERSION@