Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/media/webrtc/sdp/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

Quelle  SipccSdp.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 DOM_MEDIA_WEBRTC_SDP_SIPCCSDP_H_
#define DOM_MEDIA_WEBRTC_SDP_SIPCCSDP_H_

#include <vector>

#include "sdp/Sdp.h"
#include "sdp/SdpParser.h"
#include "sdp/SipccSdpAttributeList.h"
#include "sdp/SipccSdpMediaSection.h"
extern "C" {
#include "sipcc_sdp.h"
}

namespace mozilla {

class SipccSdpParser;

class SipccSdp final : public Sdp {
  friend class SipccSdpParser;

 public:
  explicit SipccSdp(const SdpOrigin& origin)
      : mOrigin(origin), mAttributeList(nullptr) {}
  SipccSdp(const SipccSdp& aOrig);

  virtual UniquePtr<Sdp> Clone() const override;

  virtual const SdpOrigin& GetOrigin() const override;

  // Note: connection information is always retrieved from media sections
  virtual uint32_t GetBandwidth(const std::string& type) const override;

  virtual size_t GetMediaSectionCount() const override {
    return mMediaSections.size();
  }

  virtual const SdpAttributeList& GetAttributeList() const override {
    return mAttributeList;
  }

  virtual SdpAttributeList& GetAttributeList() override {
    return mAttributeList;
  }

  virtual const SdpMediaSection& GetMediaSection(
      const size_t level) const override;

  virtual SdpMediaSection& GetMediaSection(const size_t level) override;

  virtual SdpMediaSection& AddMediaSection(
      const SdpMediaSection::MediaType media,
      const SdpDirectionAttribute::Direction dir, const uint16_t port,
      const SdpMediaSection::Protocol proto, const sdp::AddrType addrType,
      const std::string& addr) override;

  virtual void Serialize(std::ostream&) const override;

 private:
  using InternalResults = SdpParser::InternalResults;

  SipccSdp() : mOrigin(""00, sdp::kIPv4, ""), mAttributeList(nullptr) {}

  bool Load(sdp_t* sdp, InternalResults& results);
  bool LoadOrigin(sdp_t* sdp, InternalResults& results);

  SdpOrigin mOrigin;
  SipccSdpBandwidths mBandwidths;
  SipccSdpAttributeList mAttributeList;
  std::vector<UniquePtr<SipccSdpMediaSection>> mMediaSections;
};

}  // namespace mozilla

#endif  // DOM_MEDIA_WEBRTC_SDP_SIPCCSDP_H_

Messung V0.5 in Prozent
C=99 H=99 G=98

¤ Dauer der Verarbeitung: 0.7 Sekunden  ¤

*© 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.