Skip to content

Commit

Permalink
Merge pull request #82 from w3c/stop-error-code
Browse files Browse the repository at this point in the history
Add errorCode and reason to RTCQuicTransport.stop()
  • Loading branch information
aboba authored Nov 14, 2018
2 parents 1dfee24 + 4970582 commit 7250fbc
Showing 1 changed file with 56 additions and 2 deletions.
58 changes: 56 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h3>Interface Definition</h3>
sequence&lt;RTCCertificate&gt; getCertificates ();
sequence&lt;ArrayBuffer&gt; getRemoteCertificates ();
void start (RTCQuicParameters remoteParameters);
void stop ();
void stop (RTCQuicTransportStopInfo stopInfo);
RTCQuicBidirectionalStream createBidirectionalStream ();
RTCQuicSendStream createSendStream (optional RTCQuicStreamParameters parameters);
attribute EventHandler onstatechange;
Expand Down Expand Up @@ -407,14 +407,37 @@ <h2>Methods</h2>
then abort these steps.</li>
<li>Set <var>transport</var>'s <a>[[\QuicTransportState]]</a> to
<code>"closed"</code>.</li>
<li>Start the "Immediate Close" procedure by sending an APPLICATION_CLOSE frame.</li>
<li>Let <code>stopInfo></code> be the first argument.</li>
<li>Start the "Immediate Close" procedure by sending an CONNECTION_CLOSE frame
with its error code value set to the value of <var>stopInfo</var>.errorCode
and its reason value set to the value of <var>stopInfo</var>.reason.</li>
</ol>
<div>
<em>No parameters.</em>
</div>
<div>
<em>Return type:</em> <code>void</code>
</div>
<table class="parameters">
<tbody>
<tr>
<th>Parameter</th>
<th>Type</th>
<th>Nullable</th>
<th>Optional</th>
<th>Description</th>
</tr>
<tr>
<td class="prmName">stopInfo</td>
<td class="prmType"><code>RTCQuicTransportStopInfo</code></td>
<td class="prmNullFalse"><span role="img" aria-label=
"False">&#10008;</span></td>
<td class="prmOptFalse"><span role="img" aria-label=
"False">&#10008;</span></td>
<td class="prmDesc"></td>
</tr>
</tbody>
</table>
</dd>
<dt><dfn><code>createBidirectionalStream</code></dfn></dt>
<dd>
Expand Down Expand Up @@ -913,6 +936,37 @@ <h3><dfn>RTCQuicTransportState</dfn> Enum</h3>
</table>
</div>
</section>
<section id="rtcquictransportstopinfo*">
<h3><dfn>RTCQuicTransportStopInfo</dfn> Dictionary</h3>
<p>The <code>RTCQuicTransportStopInfo</code> dictionary includes information
relating to the error code for stopping a <code><a>RTCQuicTransport</a></code>.
This information is used to set the error code and reason for an CONNECTION_CLOSE
frame.</p>
<div>
<pre class="idl">dictionary RTCQuicTransportStopInfo {
unsigned short errorCode = 0;
DOMString reason = "";
};
</pre>
<section>
<h2>Dictionary <a class="idlType">RTCQuicTransportStopInfo</a> Members</h2>
<dl data-link-for="RTCQuicTransportStopInfo" data-dfn-for="RTCQuicTransportStopInfo" class=
"dictionary-members">
<dt><dfn><code>errorCode</code></dfn> of type <span class=
"idlMemberType"><a>unsigned short</a></span>, defaulting to
<code>0</code>.</dt>
<dd>
<p>The error code used in CONNECTION_CLOSE frame.</p>
</dd>
<dt><dfn><code>reason</code></dfn> of type <span class=
"idlMemberType"><a>DOMString</a></span>, defaulting to <code>""</code></dt>
<dd>
<p>The reason for stopping the <code><a>RTCQuicTransport</a></code></p>
</dd>
</dl>
</section>
</div>
</section>
</section>
<section id="quicstream*">
<h2><dfn>QUIC Stream API</dfn></h2>
Expand Down

0 comments on commit 7250fbc

Please sign in to comment.