/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /* 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/. */
bool SipccSdp::Load(sdp_t* sdp, InternalResults& results) { // Believe it or not, SDP_SESSION_LEVEL is 0xFFFF if (!mAttributeList.Load(sdp, SDP_SESSION_LEVEL, results)) { returnfalse;
}
if (!LoadOrigin(sdp, results)) { returnfalse;
}
if (!mBandwidths.Load(sdp, SDP_SESSION_LEVEL, results)) { returnfalse;
}
for (int i = 0; i < sdp_get_num_media_lines(sdp); ++i) { // note that we pass a "level" here that is one higher // sipcc counts media sections from 1, using 0xFFFF as the "session"
UniquePtr<SipccSdpMediaSection> section( new SipccSdpMediaSection(i, &mAttributeList)); if (!section->Load(sdp, i + 1, results)) { returnfalse;
}
mMediaSections.push_back(std::move(section));
} returntrue;
}
void SipccSdpBandwidths::Serialize(std::ostream& os) const { for (auto i = begin(); i != end(); ++i) {
os << "b=" << i->first << ":" << i->second << CRLF;
}
}
} // namespace mozilla
Messung V0.5
¤ 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.0.10Bemerkung:
(vorverarbeitet)
¤
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.