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