Class RtcpCompoundPacket
Class for building and sending compound RTCP packets and for parsing and processing compound RTCP packets received from the network. See RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class RtcpCompoundPacketConstructors
| Edit this page View SourceRtcpCompoundPacket()
Creates an empty RTCP compound packet. Add Sender Reports, Receiver Reports, SDES packets or BYE packets to the appropriate lists and then call ToByteArray() to build a compound RTCP packet to send over the network as a byte array.
Declaration
public RtcpCompoundPacket()Fields
| Edit this page View SourceByePackets
List of BYE packets. Initialized to an empty list.
Declaration
public List<ByePacket> ByePacketsField Value
| Type | Description | 
|---|---|
| List<ByePacket> | 
ReceiverReports
List of Receiver Reports. Initialized to an empty list.
Declaration
public List<ReceiverReport> ReceiverReportsField Value
| Type | Description | 
|---|---|
| List<ReceiverReport> | 
SdesPackets
List of Session Description (SDES) packets. Initialized to an empty list.
Declaration
public List<SdesPacket> SdesPacketsField Value
| Type | Description | 
|---|---|
| List<SdesPacket> | 
SenderReports
List of Sender Reports. Initialized to an empty list.
Declaration
public List<SenderReport> SenderReportsField Value
| Type | Description | 
|---|---|
| List<SenderReport> | 
Methods
| Edit this page View SourceParse(byte[])
Parses a byte array containg a RtcpCompoundPacket that was received from the network.
Declaration
public static RtcpCompoundPacket? Parse(byte[] Bytes)Parameters
| Type | Name | Description | 
|---|---|---|
| byte[] | Bytes | Input received byte array. | 
Returns
| Type | Description | 
|---|---|
| RtcpCompoundPacket | Returns a new RtcpCompoundPacket objedt if successful or null if an error occurred | 
ToByteArray()
Converts this object to a byte array so that the compound RTCP packet can be sent over the network.
Declaration
public byte[]? ToByteArray()Returns
| Type | Description | 
|---|---|
| byte[] | Returns a byte array. Return null if there are no Sender Reports, Receiver Reports, SDES packets or BYE packets to send. |