Class RTCDataChannel
A WebRTC data channel is generic transport service
that allows peers to exchange generic data in a peer
to peer manner.
Inheritance
System.Object
RTCDataChannel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: SIPSorcery.dll
Syntax
public class RTCDataChannel
Constructors
|
Improve this Doc
View Source
RTCDataChannel(RTCSctpTransport, RTCDataChannelInit)
Declaration
public RTCDataChannel(RTCSctpTransport transport, RTCDataChannelInit init = null)
Parameters
Properties
|
Improve this Doc
View Source
binaryType
Declaration
public string binaryType { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
bufferedAmount
Declaration
public ulong bufferedAmount { get; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
bufferedAmountLowThreshold
Declaration
public ulong bufferedAmountLowThreshold { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
|
Improve this Doc
View Source
Error
Declaration
public string Error { get; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
id
Declaration
public ushort? id { get; set; }
Property Value
Type |
Description |
System.Nullable<System.UInt16> |
|
|
Improve this Doc
View Source
IsOpened
Declaration
public bool IsOpened { get; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
label
Declaration
public string label { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
maxPacketLifeTime
Declaration
public ushort? maxPacketLifeTime { get; set; }
Property Value
Type |
Description |
System.Nullable<System.UInt16> |
|
|
Improve this Doc
View Source
maxRetransmits
Declaration
public ushort? maxRetransmits { get; set; }
Property Value
Type |
Description |
System.Nullable<System.UInt16> |
|
|
Improve this Doc
View Source
negotiated
Declaration
public bool negotiated { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ordered
Declaration
public bool ordered { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
protocol
Declaration
public string protocol { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
readyState
Declaration
public RTCDataChannelState readyState { get; }
Property Value
Methods
|
Improve this Doc
View Source
close()
Declaration
|
Improve this Doc
View Source
send(Byte[])
Sends a binary data payload on the data channel.
Declaration
public void send(byte[] data)
Parameters
Type |
Name |
Description |
System.Byte[] |
data |
The data to send.
|
|
Improve this Doc
View Source
send(String)
Sends a string data payload on the data channel.
Declaration
public void send(string message)
Parameters
Type |
Name |
Description |
System.String |
message |
The string message to send.
|
Events
|
Improve this Doc
View Source
onclose
Declaration
public event Action onclose
Event Type
Type |
Description |
System.Action |
|
|
Improve this Doc
View Source
onerror
Declaration
public event Action<string> onerror
Event Type
Type |
Description |
System.Action<System.String> |
|
|
Improve this Doc
View Source
onmessage
Declaration
public event OnDataChannelMessageDelegate onmessage
Event Type
|
Improve this Doc
View Source
onopen
Declaration
public event Action onopen
Event Type
Type |
Description |
System.Action |
|
Extension Methods