Update doc
This commit is contained in:
parent
e2d9a3ce2f
commit
e201e08a45
|
@ -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)
|
||||
|
||||
|
||||
|
|
52
apiref.html
52
apiref.html
|
@ -1820,6 +1820,58 @@ size_t <tt class="descname">nghttp2_session_get_outbound_queue_size</tt><big>(</
|
|||
include the deferred DATA frames.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="nghttp2_session_get_stream_effective_recv_data_length">
|
||||
int32_t <tt class="descname">nghttp2_session_get_stream_effective_recv_data_length</tt><big>(</big><a class="reference internal" href="#nghttp2_session" title="nghttp2_session">nghttp2_session</a><em> *session</em>, int32_t<em> stream_id</em><big>)</big><a class="headerlink" href="#nghttp2_session_get_stream_effective_recv_data_length" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Returns the number of DATA payload in bytes received without
|
||||
WINDOW_UPDATE transmission for the stream <em>stream_id</em>. The local
|
||||
(receive) window size can be adjusted by
|
||||
<a class="reference internal" href="#nghttp2_submit_window_update" title="nghttp2_submit_window_update"><tt class="xref c c-func docutils literal"><span class="pre">nghttp2_submit_window_update()</span></tt></a>. 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 <a class="reference internal" href="#nghttp2_submit_window_update" title="nghttp2_submit_window_update"><tt class="xref c c-func docutils literal"><span class="pre">nghttp2_submit_window_update()</span></tt></a>, this
|
||||
function returns the number of bytes less than actually received.</p>
|
||||
<p>If flow control is disabled for that stream, this function returns
|
||||
0.</p>
|
||||
<p>This function returns -1 if it fails.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="nghttp2_session_get_stream_effective_local_window_size">
|
||||
int32_t <tt class="descname">nghttp2_session_get_stream_effective_local_window_size</tt><big>(</big><a class="reference internal" href="#nghttp2_session" title="nghttp2_session">nghttp2_session</a><em> *session</em>, int32_t<em> stream_id</em><big>)</big><a class="headerlink" href="#nghttp2_session_get_stream_effective_local_window_size" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Returns the local (receive) window size for the stream
|
||||
<em>stream_id</em>. The local window size can be adjusted by
|
||||
<a class="reference internal" href="#nghttp2_submit_window_update" title="nghttp2_submit_window_update"><tt class="xref c c-func docutils literal"><span class="pre">nghttp2_submit_window_update()</span></tt></a>. This function takes into account
|
||||
that and returns effective window size.</p>
|
||||
<p>This function returns -1 if it fails.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="nghttp2_session_get_effective_recv_data_length">
|
||||
int32_t <tt class="descname">nghttp2_session_get_effective_recv_data_length</tt><big>(</big><a class="reference internal" href="#nghttp2_session" title="nghttp2_session">nghttp2_session</a><em> *session</em><big>)</big><a class="headerlink" href="#nghttp2_session_get_effective_recv_data_length" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>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
|
||||
<a class="reference internal" href="#nghttp2_submit_window_update" title="nghttp2_submit_window_update"><tt class="xref c c-func docutils literal"><span class="pre">nghttp2_submit_window_update()</span></tt></a>. 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 <a class="reference internal" href="#nghttp2_submit_window_update" title="nghttp2_submit_window_update"><tt class="xref c c-func docutils literal"><span class="pre">nghttp2_submit_window_update()</span></tt></a>, this function returns the
|
||||
number of bytes less than actually received.</p>
|
||||
<p>If flow control is disabled for a connection, this function returns
|
||||
0.</p>
|
||||
<p>This function returns -1 if it fails.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="nghttp2_session_get_effective_local_window_size">
|
||||
int32_t <tt class="descname">nghttp2_session_get_effective_local_window_size</tt><big>(</big><a class="reference internal" href="#nghttp2_session" title="nghttp2_session">nghttp2_session</a><em> *session</em><big>)</big><a class="headerlink" href="#nghttp2_session_get_effective_local_window_size" title="Permalink to this definition">¶</a></dt>
|
||||
<dd><p>Returns the local (receive) window size for a connection. The local
|
||||
window size can be adjusted by
|
||||
<a class="reference internal" href="#nghttp2_submit_window_update" title="nghttp2_submit_window_update"><tt class="xref c c-func docutils literal"><span class="pre">nghttp2_submit_window_update()</span></tt></a>. This function takes into account
|
||||
that and returns effective window size.</p>
|
||||
<p>This function returns -1 if it fails.</p>
|
||||
</dd></dl>
|
||||
|
||||
<dl class="function">
|
||||
<dt id="nghttp2_session_fail_session">
|
||||
int <tt class="descname">nghttp2_session_fail_session</tt><big>(</big><a class="reference internal" href="#nghttp2_session" title="nghttp2_session">nghttp2_session</a><em> *session</em>, <a class="reference internal" href="#nghttp2_error_code" title="nghttp2_error_code">nghttp2_error_code</a><em> error_code</em><big>)</big><a class="headerlink" href="#nghttp2_session_fail_session" title="Permalink to this definition">¶</a></dt>
|
||||
|
|
|
@ -500,8 +500,6 @@
|
|||
<dt><a href="apiref.html#nghttp2_nv_compare_name">nghttp2_nv_compare_name (C function)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_on_data_chunk_recv_callback">nghttp2_on_data_chunk_recv_callback (C type)</a>
|
||||
</dt>
|
||||
|
@ -510,6 +508,8 @@
|
|||
<dt><a href="apiref.html#nghttp2_on_data_recv_callback">nghttp2_on_data_recv_callback (C type)</a>
|
||||
</dt>
|
||||
|
||||
</dl></td>
|
||||
<td style="width: 33%" valign="top"><dl>
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_on_data_send_callback">nghttp2_on_data_send_callback (C type)</a>
|
||||
</dt>
|
||||
|
@ -751,10 +751,26 @@
|
|||
</dt>
|
||||
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_session_get_effective_local_window_size">nghttp2_session_get_effective_local_window_size (C function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_session_get_effective_recv_data_length">nghttp2_session_get_effective_recv_data_length (C function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_session_get_outbound_queue_size">nghttp2_session_get_outbound_queue_size (C function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_session_get_stream_effective_local_window_size">nghttp2_session_get_stream_effective_local_window_size (C function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_session_get_stream_effective_recv_data_length">nghttp2_session_get_stream_effective_recv_data_length (C function)</a>
|
||||
</dt>
|
||||
|
||||
|
||||
<dt><a href="apiref.html#nghttp2_session_get_stream_user_data">nghttp2_session_get_stream_user_data (C function)</a>
|
||||
</dt>
|
||||
|
||||
|
|
|
@ -1606,6 +1606,72 @@
|
|||
<span class="cm"> */</span>
|
||||
<span class="kt">size_t</span> <span class="nf">nghttp2_session_get_outbound_queue_size</span><span class="p">(</span><span class="n">nghttp2_session</span> <span class="o">*</span><span class="n">session</span><span class="p">);</span>
|
||||
|
||||
<span class="cm">/**</span>
|
||||
<span class="cm"> * @function</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * Returns the number of DATA payload in bytes received without</span>
|
||||
<span class="cm"> * WINDOW_UPDATE transmission for the stream |stream_id|. The local</span>
|
||||
<span class="cm"> * (receive) window size can be adjusted by</span>
|
||||
<span class="cm"> * `nghttp2_submit_window_update()`. This function takes into account</span>
|
||||
<span class="cm"> * that and returns effective data length. In particular, if the</span>
|
||||
<span class="cm"> * local window size is reduced by submitting negative</span>
|
||||
<span class="cm"> * window_size_increment with `nghttp2_submit_window_update()`, this</span>
|
||||
<span class="cm"> * function returns the number of bytes less than actually received.</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * If flow control is disabled for that stream, this function returns</span>
|
||||
<span class="cm"> * 0.</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * This function returns -1 if it fails.</span>
|
||||
<span class="cm"> */</span>
|
||||
<span class="kt">int32_t</span> <span class="nf">nghttp2_session_get_stream_effective_recv_data_length</span>
|
||||
<span class="p">(</span><span class="n">nghttp2_session</span> <span class="o">*</span><span class="n">session</span><span class="p">,</span> <span class="kt">int32_t</span> <span class="n">stream_id</span><span class="p">);</span>
|
||||
|
||||
<span class="cm">/**</span>
|
||||
<span class="cm"> * @function</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * Returns the local (receive) window size for the stream</span>
|
||||
<span class="cm"> * |stream_id|. The local window size can be adjusted by</span>
|
||||
<span class="cm"> * `nghttp2_submit_window_update()`. This function takes into account</span>
|
||||
<span class="cm"> * that and returns effective window size.</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * This function returns -1 if it fails.</span>
|
||||
<span class="cm"> */</span>
|
||||
<span class="kt">int32_t</span> <span class="nf">nghttp2_session_get_stream_effective_local_window_size</span>
|
||||
<span class="p">(</span><span class="n">nghttp2_session</span> <span class="o">*</span><span class="n">session</span><span class="p">,</span> <span class="kt">int32_t</span> <span class="n">stream_id</span><span class="p">);</span>
|
||||
|
||||
<span class="cm">/**</span>
|
||||
<span class="cm"> * @function</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * Returns the number of DATA payload in bytes received without</span>
|
||||
<span class="cm"> * WINDOW_UPDATE transmission for a connection. The local (receive)</span>
|
||||
<span class="cm"> * window size can be adjusted by</span>
|
||||
<span class="cm"> * `nghttp2_submit_window_update()`. This function takes into account</span>
|
||||
<span class="cm"> * that and returns effective data length. In particular, if the local</span>
|
||||
<span class="cm"> * window size is reduced by submitting negative window_size_increment</span>
|
||||
<span class="cm"> * with `nghttp2_submit_window_update()`, this function returns the</span>
|
||||
<span class="cm"> * number of bytes less than actually received.</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * If flow control is disabled for a connection, this function returns</span>
|
||||
<span class="cm"> * 0.</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * This function returns -1 if it fails.</span>
|
||||
<span class="cm"> */</span>
|
||||
<span class="kt">int32_t</span> <span class="nf">nghttp2_session_get_effective_recv_data_length</span>
|
||||
<span class="p">(</span><span class="n">nghttp2_session</span> <span class="o">*</span><span class="n">session</span><span class="p">);</span>
|
||||
|
||||
<span class="cm">/**</span>
|
||||
<span class="cm"> * @function</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * Returns the local (receive) window size for a connection. The local</span>
|
||||
<span class="cm"> * window size can be adjusted by</span>
|
||||
<span class="cm"> * `nghttp2_submit_window_update()`. This function takes into account</span>
|
||||
<span class="cm"> * that and returns effective window size.</span>
|
||||
<span class="cm"> *</span>
|
||||
<span class="cm"> * This function returns -1 if it fails.</span>
|
||||
<span class="cm"> */</span>
|
||||
<span class="kt">int32_t</span> <span class="nf">nghttp2_session_get_effective_local_window_size</span>
|
||||
<span class="p">(</span><span class="n">nghttp2_session</span> <span class="o">*</span><span class="n">session</span><span class="p">);</span>
|
||||
|
||||
<span class="cm">/**</span>
|
||||
<span class="cm"> * @function</span>
|
||||
<span class="cm"> *</span>
|
||||
|
|
BIN
objects.inv
BIN
objects.inv
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue