在webrtc之前的版本中,有一个类:class WebRtcSession
// A WebRtcSession manages general session state. This includes negotiation
// of both the application-level and network-level protocols: the former
// defines what will be sent and the latter defines how it will be sent. Each
// network-level protocol is represented by a Transport object. Each Transport
// participates in the network-level negotiation. The individual streams of
// packets are represented by TransportChannels. The application-level protocol
// is represented by SessionDecription objects.
class WebRtcSession :
public DataChannelProviderInterface,
public sigslot::has_slots<>
在较新的webrtc版本中已经没有这个类了,直接通过peerconnection实现了:
class PeerConnection : public PeerConnectionInterface,
public DataChannelProviderInterface,
public rtc::MessageHandler,
public sigslot::has_slots<> {