Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  RTCSctpTransport.h

  Sprache: C
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
 * You can obtain one at http://mozilla.org/MPL/2.0/. */


#ifndef RTCSctpTransport_h_
#define RTCSctpTransport_h_

#include "RTCDtlsTransport.h"
#include "js/RootingAPI.h"
#include "mozilla/DOMEventTargetHelper.h"
#include "mozilla/RefPtr.h"

class nsPIDOMWindowInner;

namespace mozilla::dom {

enum class RTCSctpTransportState : uint8_t;

class RTCSctpTransport : public DOMEventTargetHelper {
 public:
  explicit RTCSctpTransport(nsPIDOMWindowInner* aWindow,
                            RTCDtlsTransport& aDtlsTransport,
                            double aMaxMessageSize,
                            const Nullable<uint16_t>& aMaxChannels);

  // nsISupports
  NS_DECL_ISUPPORTS_INHERITED
  NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(RTCSctpTransport,
                                           DOMEventTargetHelper)

  // webidl
  JSObject* WrapObject(JSContext* aCx,
                       JS::Handle<JSObject*> aGivenProto) override;
  IMPL_EVENT_HANDLER(statechange)

  RTCDtlsTransport* Transport() const { return mDtlsTransport; }
  RTCSctpTransportState State() const { return mState; }
  double MaxMessageSize() const { return mMaxMessageSize; }
  Nullable<uint16_t> GetMaxChannels() const { return mMaxChannels; }

  void SetTransport(RTCDtlsTransport& aTransport) {
    mDtlsTransport = &aTransport;
  }

  void SetMaxMessageSize(double aMaxMessageSize) {
    mMaxMessageSize = aMaxMessageSize;
  }

  void SetMaxChannels(const Nullable<uint16_t>& aMaxChannels) {
    mMaxChannels = aMaxChannels;
  }

  void UpdateState(RTCSctpTransportState aState);

 private:
  virtual ~RTCSctpTransport() = default;

  RTCSctpTransportState mState;
  RefPtr<RTCDtlsTransport> mDtlsTransport;
  double mMaxMessageSize;
  Nullable<uint16_t> mMaxChannels;
};

}  // namespace mozilla::dom
#endif  // RTCSctpTransport_h_

Messung V0.5 in Prozent
C=84 H=96 G=90

¤ Dauer der Verarbeitung: 0.15 Sekunden  (vorverarbeitet am  2026-08-25) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002