Source code

Revision control

Copy as Markdown

Other Tools

<!-- go/cmark -->
<!--* freshness: {owner: 'hta' reviewed: '2021-04-13'} *-->
# SctpTransport
## webrtc::SctpTransport
few properties of this association to the WebRTC user (such as Chrome).
The SctpTransport is used to support Datachannels, as described in the [WebRTC
specification for the Peer-to-peer Data
interface where the user can define a callback to be called whenever the state
of an SctpTransport changes; this callback is called on the network thread (as
set during PeerConnectionFactory initialization).
The implementation of this object lives in pc/sctp_transport.{h,cc}, and is
basically a wrapper around a `cricket::SctpTransportInternal`, hiding its
implementation details and APIs that shouldn't be accessed from the user.
The `webrtc::SctpTransport` is a ref counted object; it should be regarded
as owned by the PeerConnection, and will be closed when the PeerConnection
closes, but the object itself may survive longer than the PeerConnection.
## cricket::SctpTransportInternal
and the DTLS transport, which is the object used to send and receive messages
as emitted from or consumed by the sctp library.
It communicates state changes and events using sigslot.
See header files for details.