Class ReportBlock
Class for building or parsing the report block portion of a RTCP Sender Report or Receiver Report. See Section 6.4.1 of RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class ReportBlock
Constructors
| Edit this page View SourceReportBlock()
Constructs a new ReportBlock object. Use this constructor when building a new ReportBlock object to include in a Sender Report or a Receiver Report to send.
Declaration
public ReportBlock()
Properties
| Edit this page View SourceCumulativePacketsLost
Gets or sets the Cumulative Number of Packets Lost field.
Declaration
public uint CumulativePacketsLost { get; set; }
Property Value
Type | Description |
---|---|
uint |
Dlsr
Gets or sets the Delay Since Last SR (DLSR) field.
Declaration
public uint Dlsr { get; set; }
Property Value
Type | Description |
---|---|
uint |
FractionLost
Gets or sets the Fraction Lost field.
Declaration
public byte FractionLost { get; set; }
Property Value
Type | Description |
---|---|
byte |
HighestSequenceNumberReceived
Gets or sets the Extended Highest Sequence Number Received field.
Declaration
public uint HighestSequenceNumberReceived { get; set; }
Property Value
Type | Description |
---|---|
uint |
InterarrivalJitter
Gets or sets the Inter-arrival Jitter field.
Declaration
public uint InterarrivalJitter { get; set; }
Property Value
Type | Description |
---|---|
uint |
LastSR
Gets or sets the Last SR Timestamp (LSR) field.
Declaration
public uint LastSR { get; set; }
Property Value
Type | Description |
---|---|
uint |
ReportBlockLength
Gets the length of a Report Block.
Declaration
public static int ReportBlockLength { get; }
Property Value
Type | Description |
---|---|
int |
SSRC
Sets or gets the SSRC of the source.
Declaration
public uint SSRC { get; set; }
Property Value
Type | Description |
---|---|
uint |
Methods
| Edit this page View SourceLoadBytes(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. Must be long enough to hold this object beginning at the StartIdx position. |
int | StartIdx | Index in the destination to start loading the bytes into. |
Parse(byte[], int)
Parses an input byte array and returns a ReportBlock object.
Declaration
public static ReportBlock? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array containing the ReportBlock data. |
int | StartIdx | Starting index of the ReportBlock data in the input array. |
Returns
Type | Description |
---|---|
ReportBlock | Returns a ReportBlock object if successful or null if an error occurred. |