Class SenderReport
Class for building and parsing RTCP Sender Report packets.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class SenderReport
Constructors
| Edit this page View SourceSenderReport()
Constructs a new SenderReport object. Use this constructor when building a new SenderReport RTCP packet to send.
Declaration
public SenderReport()
Properties
| Edit this page View SourceGetReportBlocks
Gets the list Report Blocks for this SenderReport.
Declaration
public List<ReportBlock> GetReportBlocks { get; }
Property Value
Type | Description |
---|---|
List<ReportBlock> |
Header
Gets the RTCP header.
Declaration
public RtcpHeader? Header { get; }
Property Value
Type | Description |
---|---|
RtcpHeader |
SSRC
Gets or sets the SSRC of the sender.
Declaration
public uint SSRC { get; set; }
Property Value
Type | Description |
---|---|
uint |
SenderInfo
Gets the SenderInfo object.
Declaration
public SenderInfo? SenderInfo { get; }
Property Value
Type | Description |
---|---|
SenderInfo |
Methods
| Edit this page View SourceAddReportBlock(ReportBlock)
Adds a new ReportBlock object to the list of ReportBlocks.
Declaration
public void AddReportBlock(ReportBlock Rb)
Parameters
Type | Name | Description |
---|---|---|
ReportBlock | Rb | ReportBlock to add to the list of report blocks |
GetTotalBytes()
Calculates the total number of bytes necessary to hold this object in a byte array.
Declaration
public int GetTotalBytes()
Returns
Type | Description |
---|---|
int | The number of bytes required for this object. |
LoadBytes(byte[], int)
Loads this object into a destination byte array.
Declaration
public void LoadBytes(byte[] Dest, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Dest | The destination byte array. This array must be long enough to hold this object beginning at the StartIdx position. |
int | StartIdx | Index in Dest to load the bytes into. |
Parse(byte[])
Parses a byte array and creates a SenderReport object.
Declaration
public static SenderReport? Parse(byte[] Bytes)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array |
Returns
Type | Description |
---|---|
SenderReport | Returns a SenderReport object if successful or null if an error occurred. |
Parse(byte[], int)
Parses a byte array and creates a SenderReport object.
Declaration
public static SenderReport? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array |
int | StartIdx | Starting index of the SenderReport data in the input byte array |
Returns
Type | Description |
---|---|
SenderReport | Returns a SenderReport object if successful or null if an error occurred. |
ToByteArray()
Converts this RTCP SenderReport object to a byte array so that it can sent over the network.
Declaration
public byte[] ToByteArray()
Returns
Type | Description |
---|---|
byte[] | Returns a byte array containing an RTCP Sender Report. |