SctpTransport

SctpTransport

webrtc::SctpTransport

The webrtc::SctpTransport class encapsulates an SCTP association, and exposes a few properties of this association to the WebRTC user (such as Chrome).

​webrtc::SctpTransport类封装了一个SCTP关联,并向webrtc用户公开了该关联的一些属性(例如Chrome)。

The SctpTransport is used to support Datachannels, as described in the WebRTC specification for the Peer-to-peer Data API.

​SctpTransport用于支持数据通道,如对等数据API的WebRTC规范中所述。

The public interface (webrtc::SctpTransportInterface) exposes an observer 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).

​公共接口(webrtc::SctpTransportInterface)暴露了一个观察者接口,用户可以在其中定义一个回调,以便在SctpTransport的状态发生变化时调用;此回调是在网络线程上调用的(在PeerConnectionFactory初始化期间设置)。

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 shoudldn't be accessed from the user.

这个对象的实现存在于pc/sctp_transport.{h,cc}中。它基本上是一个cricket::SctpTransportInternal的包装器,隐藏了它的实现细节和用户不应该访问的API。

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.

webrtc::SctpTransport是一个引用计数的对象;它应该被视为由PeerConnection拥有,并且在PeerConnect关闭时将被关闭,但对象本身可能比PeerConnetion存活更长时间。

cricket::SctpTransportInternal

cricket::SctpTransportInternal owns two objects: The SCTP association object and the DTLS transport, which is the object used to send and receive messages as emitted from or consumed by the sctp library.

cricket:::SctpTransportInternal拥有两个对象:SCTP关联对象和DTLS传输,DTLS传输是用于发送和接收从SCTP库发出或由SCTP库使用的消息的对象。

It communicates state changes and events using sigslot.

它使用sigslot通信状态更改和事件。

See header files for details.

有关详细信息,请参见头文件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值