Imported Upstream version 1.0.0
[platform/upstream/nghttp2.git] / doc / nghttp2_session_want_read.rst
1
2 nghttp2_session_want_read
3 =========================
4
5 Synopsis
6 --------
7
8 *#include <nghttp2/nghttp2.h>*
9
10 .. function:: int nghttp2_session_want_read(nghttp2_session *session)
11
12     
13     Returns nonzero value if *session* wants to receive data from the
14     remote peer.
15     
16     If both `nghttp2_session_want_read()` and
17     `nghttp2_session_want_write()` return 0, the application should
18     drop the connection.