From e201e08a45cdbf3997e26f1d5830dd50eb9b7135 Mon Sep 17 00:00:00 2001
From: Tatsuhiro Tsujikawa
Date: Wed, 30 Oct 2013 01:04:28 +0900
Subject: [PATCH] Update doc
---
_sources/apiref.txt | 54 ++++++++++++++++++++++++++++++++++++
apiref.html | 52 ++++++++++++++++++++++++++++++++++
genindex.html | 20 ++++++++++++--
nghttp2.h.html | 66 ++++++++++++++++++++++++++++++++++++++++++++
objects.inv | Bin 2004 -> 2034 bytes
searchindex.js | 2 +-
6 files changed, 191 insertions(+), 3 deletions(-)
diff --git a/_sources/apiref.txt b/_sources/apiref.txt
index 22c49191..7dc5599d 100644
--- a/_sources/apiref.txt
+++ b/_sources/apiref.txt
@@ -1354,6 +1354,60 @@ Functions
Returns the number of frames in the outbound queue. This does not
include the deferred DATA frames.
+.. function:: int32_t nghttp2_session_get_stream_effective_recv_data_length (nghttp2_session *session, int32_t stream_id)
+
+
+ Returns the number of DATA payload in bytes received without
+ WINDOW_UPDATE transmission for the stream *stream_id*. The local
+ (receive) window size can be adjusted by
+ `nghttp2_submit_window_update()`. This function takes into account
+ that and returns effective data length. In particular, if the
+ local window size is reduced by submitting negative
+ window_size_increment with `nghttp2_submit_window_update()`, this
+ function returns the number of bytes less than actually received.
+
+ If flow control is disabled for that stream, this function returns
+ 0.
+
+ This function returns -1 if it fails.
+
+.. function:: int32_t nghttp2_session_get_stream_effective_local_window_size (nghttp2_session *session, int32_t stream_id)
+
+
+ Returns the local (receive) window size for the stream
+ *stream_id*. The local window size can be adjusted by
+ `nghttp2_submit_window_update()`. This function takes into account
+ that and returns effective window size.
+
+ This function returns -1 if it fails.
+
+.. function:: int32_t nghttp2_session_get_effective_recv_data_length (nghttp2_session *session)
+
+
+ Returns the number of DATA payload in bytes received without
+ WINDOW_UPDATE transmission for a connection. The local (receive)
+ window size can be adjusted by
+ `nghttp2_submit_window_update()`. This function takes into account
+ that and returns effective data length. In particular, if the local
+ window size is reduced by submitting negative window_size_increment
+ with `nghttp2_submit_window_update()`, this function returns the
+ number of bytes less than actually received.
+
+ If flow control is disabled for a connection, this function returns
+ 0.
+
+ This function returns -1 if it fails.
+
+.. function:: int32_t nghttp2_session_get_effective_local_window_size (nghttp2_session *session)
+
+
+ Returns the local (receive) window size for a connection. The local
+ window size can be adjusted by
+ `nghttp2_submit_window_update()`. This function takes into account
+ that and returns effective window size.
+
+ This function returns -1 if it fails.
+
.. function:: int nghttp2_session_fail_session(nghttp2_session *session, nghttp2_error_code error_code)
diff --git a/apiref.html b/apiref.html
index 9b3f5d87..1d52679f 100644
--- a/apiref.html
+++ b/apiref.html
@@ -1820,6 +1820,58 @@ size_t nghttp2_session_get_outbound_queue_size(
include the deferred DATA frames.
+
+-
+int32_t nghttp2_session_get_stream_effective_recv_data_length(nghttp2_session *session, int32_t stream_id)
+Returns the number of DATA payload in bytes received without
+WINDOW_UPDATE transmission for the stream stream_id. The local
+(receive) window size can be adjusted by
+nghttp2_submit_window_update(). This function takes into account
+that and returns effective data length. In particular, if the
+local window size is reduced by submitting negative
+window_size_increment with nghttp2_submit_window_update(), this
+function returns the number of bytes less than actually received.
+If flow control is disabled for that stream, this function returns
+0.
+This function returns -1 if it fails.
+
+
+
+-
+int32_t nghttp2_session_get_stream_effective_local_window_size(nghttp2_session *session, int32_t stream_id)
+Returns the local (receive) window size for the stream
+stream_id. The local window size can be adjusted by
+nghttp2_submit_window_update(). This function takes into account
+that and returns effective window size.
+This function returns -1 if it fails.
+
+
+
+-
+int32_t nghttp2_session_get_effective_recv_data_length(nghttp2_session *session)
+Returns the number of DATA payload in bytes received without
+WINDOW_UPDATE transmission for a connection. The local (receive)
+window size can be adjusted by
+nghttp2_submit_window_update(). This function takes into account
+that and returns effective data length. In particular, if the local
+window size is reduced by submitting negative window_size_increment
+with nghttp2_submit_window_update(), this function returns the
+number of bytes less than actually received.
+If flow control is disabled for a connection, this function returns
+0.
+This function returns -1 if it fails.
+
+
+
+-
+int32_t nghttp2_session_get_effective_local_window_size(nghttp2_session *session)
+Returns the local (receive) window size for a connection. The local
+window size can be adjusted by
+nghttp2_submit_window_update(). This function takes into account
+that and returns effective window size.
+This function returns -1 if it fails.
+
+
-
int nghttp2_session_fail_session(nghttp2_session *session, nghttp2_error_code error_code)
diff --git a/genindex.html b/genindex.html
index b35ba598..c2318b42 100644
--- a/genindex.html
+++ b/genindex.html
@@ -500,8 +500,6 @@
- nghttp2_nv_compare_name (C function)
-
-
- nghttp2_on_data_chunk_recv_callback (C type)
@@ -510,6 +508,8 @@
- nghttp2_on_data_recv_callback (C type)
+ |
+
- nghttp2_on_data_send_callback (C type)
@@ -751,10 +751,26 @@
+ - nghttp2_session_get_effective_local_window_size (C function)
+
+
+
+ - nghttp2_session_get_effective_recv_data_length (C function)
+
+
+
- nghttp2_session_get_outbound_queue_size (C function)
+ - nghttp2_session_get_stream_effective_local_window_size (C function)
+
+
+
+ - nghttp2_session_get_stream_effective_recv_data_length (C function)
+
+
+
- nghttp2_session_get_stream_user_data (C function)
diff --git a/nghttp2.h.html b/nghttp2.h.html
index afc7ee77..eb9ea880 100644
--- a/nghttp2.h.html
+++ b/nghttp2.h.html
@@ -1606,6 +1606,72 @@
*/
size_t nghttp2_session_get_outbound_queue_size(nghttp2_session *session);
+/**
+ * @function
+ *
+ * Returns the number of DATA payload in bytes received without
+ * WINDOW_UPDATE transmission for the stream |stream_id|. The local
+ * (receive) window size can be adjusted by
+ * `nghttp2_submit_window_update()`. This function takes into account
+ * that and returns effective data length. In particular, if the
+ * local window size is reduced by submitting negative
+ * window_size_increment with `nghttp2_submit_window_update()`, this
+ * function returns the number of bytes less than actually received.
+ *
+ * If flow control is disabled for that stream, this function returns
+ * 0.
+ *
+ * This function returns -1 if it fails.
+ */
+int32_t nghttp2_session_get_stream_effective_recv_data_length
+(nghttp2_session *session, int32_t stream_id);
+
+/**
+ * @function
+ *
+ * Returns the local (receive) window size for the stream
+ * |stream_id|. The local window size can be adjusted by
+ * `nghttp2_submit_window_update()`. This function takes into account
+ * that and returns effective window size.
+ *
+ * This function returns -1 if it fails.
+ */
+int32_t nghttp2_session_get_stream_effective_local_window_size
+(nghttp2_session *session, int32_t stream_id);
+
+/**
+ * @function
+ *
+ * Returns the number of DATA payload in bytes received without
+ * WINDOW_UPDATE transmission for a connection. The local (receive)
+ * window size can be adjusted by
+ * `nghttp2_submit_window_update()`. This function takes into account
+ * that and returns effective data length. In particular, if the local
+ * window size is reduced by submitting negative window_size_increment
+ * with `nghttp2_submit_window_update()`, this function returns the
+ * number of bytes less than actually received.
+ *
+ * If flow control is disabled for a connection, this function returns
+ * 0.
+ *
+ * This function returns -1 if it fails.
+ */
+int32_t nghttp2_session_get_effective_recv_data_length
+(nghttp2_session *session);
+
+/**
+ * @function
+ *
+ * Returns the local (receive) window size for a connection. The local
+ * window size can be adjusted by
+ * `nghttp2_submit_window_update()`. This function takes into account
+ * that and returns effective window size.
+ *
+ * This function returns -1 if it fails.
+ */
+int32_t nghttp2_session_get_effective_local_window_size
+(nghttp2_session *session);
+
/**
* @function
*
diff --git a/objects.inv b/objects.inv
index fbd6bbee920012a15e63a6b21c8b4cd5c50d4d86..7ea84ada5d9e4473ecab10a92857d249fcb7cca9 100644
GIT binary patch
delta 1928
zcmV;32Y2|?5AqL?fPc%9n>ZBR=PO(_vkg^~Wp=cY-PG_J9_e&8DjH;)3I@W%PUq|A
zidRG1L04quvMqshALpKPrE?x9SgnxSaH;jQQR@X^(tSHOs@)ai3uLWCpnQr;SwN!(z({>T7b6lMo_7m}Z
z#A-&ySpLCi{N#IH6bDRVb$zgtC|FDAb~Sxj-&0eg|R#b6ql$b)iqSk+=;d%1IS3?-^A}a80p+iqcpFW
z)Q9ndVQ>FkV-|7z0MKS&E-WtkwoOgddWIG53?2R$u@3=6
z`~i+@`+qiKtf_uoho)VsU7_OTSK1T+K@68~Cl
zwJ4LkOzKyOn%`}I9cI6J@D4uN9L(GEPd4P2K~
z@-B@$*&2bP{oGj^*}(@2=cjL2BWTcQa?2$2;K815`Z7McoKog6DrS
zN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