Scroll to navigation

WSLAY_EVENT_WANT_READ(3) wslay WSLAY_EVENT_WANT_READ(3)

NAME

wslay_event_want_read - Tell whether the library wants to read more data

SYNOPSIS

#include <wslay/wslay.h>


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).

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() <#c.wslay_event_want_write>, wslay_event_shutdown_read() <#c.wslay_event_shutdown_read>, wslay_event_get_read_enabled() <#c.wslay_event_get_read_enabled>

Author

Tatsuhiro Tsujikawa

Copyright

2012, 2015, Tatsuhiro Tsujikawa

July 9, 2021 1.1.1