logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

wslay_event_want_read - Tell whether the library wants to read more data

Author

       Tatsuhiro Tsujikawa

Description

wslay_event_want_read() is used to know whether the library want to read more data from peer.

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

Name

       wslay_event_want_read - Tell whether the library wants to read more data

Return Value

wslay_event_want_read() returns 1 if the library want to read more data from peer, or returns 0.

See Also

wslay_event_want_write(), wslay_event_shutdown_read(), wslay_event_get_read_enabled()

Synopsis

       #include <wslay/wslay.h>

       intwslay_event_want_read(wslay_event_context_ptrctx)

See Also