/* * Copyright 2011 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree.
*/
namespace rtc { class BasicNetworkManager; class BasicPacketSocketFactory;
} // namespace rtc
namespace webrtc {
class PeerConnectionFactory : public PeerConnectionFactoryInterface { public: // Creates a PeerConnectionFactory. It returns nullptr on initialization // error. // // The Dependencies structure allows simple management of all new // dependencies being added to the PeerConnectionFactory. static rtc::scoped_refptr<PeerConnectionFactory> Create(
PeerConnectionFactoryDependencies dependencies);
rtc::Thread* signaling_thread() const { // This method can be called on a different thread when the factory is // created in CreatePeerConnectionFactory(). return context_->signaling_thread();
}
protected: // Constructor used by the static Create() method. Modifies the dependencies.
PeerConnectionFactory(rtc::scoped_refptr<ConnectionContext> context,
PeerConnectionFactoryDependencies* dependencies);
// Constructor for use in testing. Ignores the possibility of initialization // failure. The dependencies are passed in by std::move(). explicit PeerConnectionFactory(
PeerConnectionFactoryDependencies dependencies);
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.