From 4970582e92aa0baf44ca5d3dc0f0eb8a61a9d36e Mon Sep 17 00:00:00 2001 From: Seth Hampson Date: Tue, 13 Nov 2018 15:52:08 -0800 Subject: [PATCH] Add errorCode and reason to RTCQuicTransport.stop() --- index.html | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index eee21c0..30046bd 100644 --- a/index.html +++ b/index.html @@ -137,7 +137,7 @@

Interface Definition

sequence<RTCCertificate> getCertificates (); sequence<ArrayBuffer> getRemoteCertificates (); void start (RTCQuicParameters remoteParameters); - void stop (); + void stop (RTCQuicTransportStopInfo stopInfo); RTCQuicBidirectionalStream createBidirectionalStream (); RTCQuicSendStream createSendStream (); attribute EventHandler onstatechange; @@ -410,7 +410,10 @@

Methods

then abort these steps.
  • Set transport's [[\QuicTransportState]] to "closed".
  • -
  • Start the "Immediate Close" procedure by sending an APPLICATION_CLOSE frame.
  • +
  • Let stopInfo> be the first argument.
  • +
  • Start the "Immediate Close" procedure by sending an CONNECTION_CLOSE frame + with its error code value set to the value of stopInfo.errorCode + and its reason value set to the value of stopInfo.reason.
  • No parameters. @@ -418,6 +421,26 @@

    Methods

    Return type: void
    + + + + + + + + + + + + + + + + + +
    ParameterTypeNullableOptionalDescription
    stopInfoRTCQuicTransportStopInfo
    createBidirectionalStream
    @@ -898,6 +921,37 @@

    RTCQuicTransportState Enum

    +
    +

    RTCQuicTransportStopInfo Dictionary

    +

    The RTCQuicTransportStopInfo dictionary includes information + relating to the error code for stopping a RTCQuicTransport. + This information is used to set the error code and reason for an CONNECTION_CLOSE + frame.

    +
    +
    dictionary RTCQuicTransportStopInfo {
    +             unsigned short errorCode = 0;
    +             DOMString reason = "";
    +        };
    +        
    +
    +

    Dictionary RTCQuicTransportStopInfo Members

    +
    +
    errorCode of type unsigned short, defaulting to + 0.
    +
    +

    The error code used in CONNECTION_CLOSE frame.

    +
    +
    reason of type DOMString, defaulting to ""
    +
    +

    The reason for stopping the RTCQuicTransport

    +
    +
    +
    +
    +

    QUIC Stream API