Class SenderInfo
Class for the Sender Info part of a Sender Report RTCP packet. See Section 6.4.1 of RFC 3550.
Inherited Members
Namespace: SipLib.Rtp
Assembly: SipLib.dll
Syntax
public class SenderInfo
Constructors
| Edit this page View SourceSenderInfo()
Constructs a new SenderInfo object. Use this constructor when building a new RTCP packet for to send a Sender Report.
Declaration
public SenderInfo()
Fields
| Edit this page View SourceSENDER_INFO_BLOCK_LENGTH
Fixed length of a SenderInfo block
Declaration
public const int SENDER_INFO_BLOCK_LENGTH = 20
Field Value
Type | Description |
---|---|
int |
Properties
| Edit this page View SourceNTP
Gets UTC time from the NTP timestamp or sets the NTP timestamp field from the UTC time.
Declaration
public DateTime NTP { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
RtpTimestamp
Gets or sets the RTP Timestamp field.
Declaration
public uint RtpTimestamp { get; set; }
Property Value
Type | Description |
---|---|
uint |
SenderInfoLength
Gets the length of the SendInfo block.
Declaration
public int SenderInfoLength { get; }
Property Value
Type | Description |
---|---|
int |
SenderOctetCount
Gets or sets the Sender Octet Count field.
Declaration
public uint SenderOctetCount { get; set; }
Property Value
Type | Description |
---|---|
uint |
SenderPacketCount
Gets or sets the Sender Packet Count field.
Declaration
public uint SenderPacketCount { 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 a byte array and returns a SenderInfo object.
Declaration
public static SenderInfo? Parse(byte[] Bytes, int StartIdx)
Parameters
Type | Name | Description |
---|---|---|
byte[] | Bytes | Input byte array |
int | StartIdx | Starting index of the SenderInfo data in the input byte array. |
Returns
Type | Description |
---|---|
SenderInfo | Returns a SenderInfo object if successful or null if an error occurred. |