rtci-datachannel 0.5.0

WebRTC data channels and the Data Channel Establishment Protocol (RFC 8831, RFC 8832), sans-I/O
Documentation

rtci-datachannel

WebRTC data channels over SCTP: the Data Channel Establishment Protocol (the DATA_CHANNEL_OPEN / DATA_CHANNEL_ACK handshake), the reliability and ordering parameters of a channel, and the payload protocol identifiers that tell string, binary and empty messages apart.

Specifications

  • RFC 8831, WebRTC Data Channels
  • RFC 8832, WebRTC Data Channel Establishment Protocol

Clause-by-clause status, with the test that proves each clause: rfc8831, rfc8832.

Use

Most applications use data channels through the root crate (rtci, RTCPeerConnection::create_data_channel), which runs this crate over rtci-sctp. Used on its own, data_channel holds one channel's state over an SCTP stream and message the DCEP messages.

Sans-I/O

It reads and writes SCTP stream data through rtci-sctp's association; it opens no socket and starts no timer. The crate does no I/O and reads no clock: every call that depends on time takes an Instant from the caller.

Licence

Licensed under either of the MIT licence or the Apache License, Version 2.0, at your option.

This crate is part of the rtci workspace, which descends from webrtc-rs/rtc and is developed independently; FORK.md lists what it carries over upstream. Upstream's licence and copyright notices are retained.