Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add errorCode and reason to RTCQuicTransport.stop() #82

Merged
merged 1 commit into from
Nov 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 56 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,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 ();
attribute EventHandler onstatechange;
Expand Down Expand Up @@ -410,14 +410,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 @@ -898,6 +921,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