package
1.2.0
Repository: https://github.com/pions/webrtc.git
Documentation: pkg.go.dev

# Functions

Accept is used to accept incoming data channels over SCTP.
Client opens a data channel over an SCTP stream.
Dial opens a data channels over SCTP.
Parse accepts raw input and returns a DataChannel message.
ParseExpectDataChannelAck parses a DataChannelAck message or throws an error.
ParseExpectDataChannelOpen parses a DataChannelOpen message or throws an error.
Server accepts a data channel over an SCTP stream.

# Constants

ChannelPriority enums.
ChannelPriority enums.
ChannelPriority enums.
ChannelPriority enums.
ChannelTypePartialReliableRexmit determines the Data Channel provides a partially-reliable in-order bi-directional communication.
ChannelTypePartialReliableRexmitUnordered determines the Data Channel provides a partial reliable unordered bi-directional communication.
ChannelTypePartialReliableTimed determines the Data Channel provides a partial reliable in-order bi-directional communication.
The Data Channel provides a partial reliable unordered bi-directional communication.
ChannelTypeReliable determines the Data Channel provides a reliable in-order bi-directional communication.
ChannelTypeReliableUnordered determines the Data Channel provides a reliable unordered bi-directional communication.
DataChannel Message Types.
DataChannel Message Types.

# Structs

ChannelAck is used to ACK a DataChannel open.
ChannelOpen represents a DATA_CHANNEL_OPEN Message 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Message Type | Channel Type | Priority | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Reliability Parameter | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Label Length | Protocol Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Label | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | Protocol | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ */.
Config is used to configure the data channel.
DataChannel represents a data channel.

# Interfaces

Message is a parsed DataChannel message.

# Type aliases

ChannelType determines the reliability of the WebRTC DataChannel.
MessageType is the first byte in a DataChannel message that specifies type.