---
name: "wslay_event_want_read"
section: "3"
platform: "linux"
package: "libwslay"
version: "1.1.1-7"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/wslay_event_want_read"
---

# wslay\_event\_want\_read(3)

Tell whether the library wants to read more data

## NAME

wslay\_event\_want\_read - Tell whether the library wants to read more data

## SYNOPSIS

\#include \<wslay/wslay.h\>

- **int wslay\_event\_want\_read(wslay\_event\_context\_ptr *ctx*)**

  ## 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)](/select/2.md)** and **[poll(2)](/poll/2.md)**.

## 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()**

## AUTHOR

Tatsuhiro Tsujikawa

## COPYRIGHT

2012, 2015, Tatsuhiro Tsujikawa
