• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • SipLib.Body
      • BodyParser
      • ContentTypes
      • MessageContentsContainer
      • MultipartBinaryBodyBuilder
      • SipBodyBuilder
    • SipLib.Channels
      • AcceptCertificateDelegate
      • AcceptConnectionDelegate
      • DscpSettings
      • LogInvalidSipMessageDelegate
      • LogSipRequestDelegate
      • LogSipResponseDelegate
      • Qos
      • SIPChannel
      • SIPConnection
      • SIPConnectionDisconnectedDelegate
      • SIPConnectionsEnum
      • SIPMessageReceivedDelegate
      • SIPTCPChannel
      • SIPTLSChannel
      • SIPUDPChannel
      • SipConnectionFailedDelegate
      • SipRequestReceivedDelegate
      • SipResponseReceivedDelegate
      • SipTransactionCompleteDelegate
      • WindowsQos
    • SipLib.Collections
      • ThreadSafeGenericList<T>
    • SipLib.Core
      • ByteBufferInfo
      • CallProperties
      • Crypto
      • HTTPDigest
      • IPSocket
      • SIPAuthenticationHeader
      • SIPAuthorisationDigest
      • SIPAuthorisationHeadersEnum
      • SIPCallInfoHeader
      • SIPConstants
      • SIPContactHeader
      • SIPEndPoint
      • SIPEscape
      • SIPFrag
      • SIPFromHeader
      • SIPGeolocationHeader
      • SIPHeader
      • SIPHeaders
      • SIPMessage
      • SIPMessageTypesEnum
      • SIPMethods
      • SIPMethodsEnum
      • SIPPaiHeader
      • SIPParameters
      • SIPPpiHeader
      • SIPProtocolsEnum
      • SIPProtocolsType
      • SIPReplacesParameter
      • SIPRequest
      • SIPResponse
      • SIPResponseStatusCodes
      • SIPResponseStatusCodesEnum
      • SIPRoute
      • SIPRouteSet
      • SIPSchemesEnum
      • SIPSchemesType
      • SIPToHeader
      • SIPURI
      • SIPUserField
      • SIPValidationException
      • SIPValidationFieldsEnum
      • SIPViaHeader
      • SIPViaSet
      • SipUtils
      • TypeExtensions
    • SipLib.Dtls
      • AlertLevelsEnum
      • AlertTypesEnum
      • DtlsClientUdpTransport
      • DtlsServerUdpTransport
      • DtlsSrtpClient
      • DtlsSrtpServer
      • DtlsSrtpTransport
      • DtlsUtils
      • IDtlsSrtpPeer
      • IPacketTransformer
      • ITransformEngine
      • NetConvert
      • RTCDtlsFingerprint
      • RawPacket
      • SrtcpCryptoContext
      • SrtpPolicy
      • SrtpTransformEngine
      • SrtpTransformer
    • SipLib.Logging
      • SipLogger
    • SipLib.Media
      • ALawDecoder
      • ALawEncoder
      • AudioDestination
      • AudioDestinationDelegate
      • AudioSampleData
      • AudioSamplesReadyDelegate
      • AudioSource
      • Band
      • DtmfDigitReceivedDelegate
      • FileAudioSource
      • G722Codec
      • G722CodecState
      • G722Decoder
      • G722Encoder
      • G722Flags
      • HighResolutionTimer
      • HighResolutionTimerDelegate
      • IAudioDecoder
      • IAudioEncoder
      • IAudioSampleSource
      • MediaPortManager
      • MediaPortSettings
      • MediaTypes
      • MsrpEncryptionEnum
      • MuLawDecoder
      • MuLawEncoder
      • PcmaDecoder
      • PcmaEncoder
      • PcmuDecoder
      • PcmuEncoder
      • PortRange
      • RtpEncryptionEnum
    • SipLib.Msrp
      • ByteRangeHeader
      • CpimMessage
      • MsrpCompletionStatus
      • MsrpConnection
      • MsrpConnectionStatusDelegate
      • MsrpMessage
      • MsrpMessageDeliveryFailedDelegate
      • MsrpMessageReceivedDelegate
      • MsrpMessageSentDelegate
      • MsrpMessageType
      • MsrpPathHeader
      • MsrpStatusHeader
      • MsrpStreamParser
      • MsrpTextMessageReceivedDelegate
      • MsrpUri
      • ReportReceivedDelegate
    • SipLib.Network
      • IpUtils
    • SipLib.RealTimeText
      • RttCharactersReceivedDelegate
      • RttParameters
      • RttReceiver
      • RttRtpSendDelegate
      • RttSender
    • SipLib.Rtp
      • ByePacket
      • DtlsHandshakeFailedDelegate
      • DtmfEventEnum
      • DtmfPacket
      • JitterStatistics
      • MeanOpinionScore
      • ReceiveStatisticsReadyDelegate
      • ReceiverReport
      • ReportBlock
      • RtcpCompoundPacket
      • RtcpHeader
      • RtcpPacketReceivedDelegate
      • RtcpPacketSentDelegate
      • RtcpPacketType
      • RtpChannel
      • RtpPacket
      • RtpPacketReceivedDelegate
      • RtpPacketSentDelegate
      • RtpReceiveStatistics
      • RtpUtils
      • SdesChunk
      • SdesItem
      • SdesItemType
      • SdesPacket
      • SenderInfo
      • SenderReport
    • SipLib.RtpCrypto
      • AesFunctions
      • CryptoAttribute
      • CryptoContext
      • CryptoSuites
      • InlineParams
      • MasterKeys
      • RocVals
      • RocValues
      • SRtpErrorsEnum
      • SRtpUtils
      • SessionKeys
      • SrtpDecryptor
      • SrtpEncryptor
      • SrtpLabelItem
      • SrtpTransformBase
    • SipLib.Sdp
      • ConnectionData
      • MediaDescription
      • MediaDirectionEnum
      • Origin
      • RtpMapAttribute
      • Sdp
      • SdpAnswerSettings
      • SdpAttribute
      • SdpUtils
      • SetupType
    • SipLib.Threading
      • QueuedActionWorkerTask
    • SipLib.Transactions
      • ClientInviteTransaction
      • ClientNonInviteTransaction
      • ServerInviteTransaction
      • ServerNonInviteTransaction
      • SipTimers
      • SipTransactionBase
      • SipTransport
      • TransactionRequestReceivedDelegate
      • TransactionResponseReceivedDelegate
      • TransactionStateEnum
      • TransactionTerminationReasonEnum
    • SipLib.Video
      • H264Depacketiser
      • H264Packetiser
      • H264Packetiser.H264Nal
      • H264RtpReceiver
      • H264RtpSender
      • RtpSendDelegate
      • RtpVP8Header
      • VP8RtpReceiver
      • VP8RtpSender
      • VideoRtpReceiver
      • VideoRtpSender

    Class RtpUtils

    This class contains various static functions for reading and writing words, double words (4 bytes) and double double words (8 bytes) from byte arrays.

    Inheritance
    object
    RtpUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: SipLib.Rtp
    Assembly: SipLib.dll
    Syntax
    public class RtpUtils

    Methods

    | Edit this page View Source

    DateTimeToNtpTimestamp(DateTime)

    Converts specified DateTime value to long NTP time.

    Declaration
    public static ulong DateTimeToNtpTimestamp(DateTime value)
    Parameters
    Type Name Description
    DateTime value

    DateTime value to convert. This value must be in local time.

    Returns
    Type Description
    ulong

    Returns NTP Timestamp value.

    | Edit this page View Source

    DumpByteArray(byte[])

    Declaration
    public static void DumpByteArray(byte[] Ary)
    Parameters
    Type Name Description
    byte[] Ary
    | Edit this page View Source

    Get3Bytes(byte[], int)

    Gets a 24-bit value from a 3-byte array into a UInt32.

    Declaration
    public static uint Get3Bytes(byte[] SrcBytes, int idx)
    Parameters
    Type Name Description
    byte[] SrcBytes

    Source byte array. Must contain at least 3 bytes starting at the idx value. The byte order must be Big-Endian (MSB first).

    int idx

    Starting index of the 24-bit field.

    Returns
    Type Description
    uint

    The 24-bit value packeted into the least significant 3 bytes of a uint value

    | Edit this page View Source

    Get8ByteWord(byte[], int)

    Gets a ulong (64-bit) value from a byte array starting at the specified index value with the MSB first (Big Endian format).

    Declaration
    public static ulong Get8ByteWord(byte[] SrcBytes, int idx)
    Parameters
    Type Name Description
    byte[] SrcBytes

    Source byte array. Must contain at least 8 bytes starting at the idx value.

    int idx

    Starting index of the 8 byte long field.

    Returns
    Type Description
    ulong

    Returns the ulong value.

    | Edit this page View Source

    GetDWord(byte[], int)

    Gets a uint (32-bit DWORD) value from a byte array starting at the specified index value with the MSB first (Big Endian format).

    Declaration
    public static uint GetDWord(byte[] SrcBytes, int idx)
    Parameters
    Type Name Description
    byte[] SrcBytes

    Source byte array. Must contain at least 4 bytes starting at the idx value.

    int idx

    Starting index of the 4 byte long field.

    Returns
    Type Description
    uint

    Returns the uint value.

    | Edit this page View Source

    GetWord(byte[], int)

    Gets a ushort value (16-bit WORD) from a byte array that contains the MSB first (Big Endian format).

    Declaration
    public static ushort GetWord(byte[] SrcBytes, int i)
    Parameters
    Type Name Description
    byte[] SrcBytes

    Source array. Must contain at least 2 bytes starting at the idx value.

    int i

    Starting index of the 2 byte long field within the array.

    Returns
    Type Description
    ushort

    Returns the word value.

    | Edit this page View Source

    NtpTimeStampToDateTime(ulong)

    Converts a NTP timestamp value (as received in an RTCP packet or from an NTP server) to a UTC DateTime value.

    Declaration
    public static DateTime NtpTimeStampToDateTime(ulong NtpTimeStamp)
    Parameters
    Type Name Description
    ulong NtpTimeStamp

    NTP timestamp value to convert.

    Returns
    Type Description
    DateTime

    Return a UTC DateTime value. Returns DateTime.MinValue if the input NtpTimeStamp parameter is 0 or otherwise not valid.

    Remarks

    The caller must be prepared to deal with the case where the returned DateTime value is equal to DateTime.MinValue.

    | Edit this page View Source

    Set3Bytes(byte[], int, uint)

    Loads the 3 least significant bytes into a 3-byte long destination byte array with the MSB first (Big Endian format).

    Declaration
    public static void Set3Bytes(byte[] DestBytes, int i, uint DWord)
    Parameters
    Type Name Description
    byte[] DestBytes

    Destination byte aray. Must contain at least 3 bytes starting at the idx value.

    int i

    Starting index of the 24-bit field.

    uint DWord

    Contains the 24-bit value to load.

    | Edit this page View Source

    Set8ByteWord(byte[], int, ulong)

    Loads a ulong value (64-bit word) into a byte array starting at the specified index value with the MSB first (Big Endian format).

    Declaration
    public static void Set8ByteWord(byte[] DestBytes, int Start, ulong DDw)
    Parameters
    Type Name Description
    byte[] DestBytes

    Destination byte array. Must contain at least 8 bytes starting at the Start value.

    int Start

    Starting index of the 8 byte long field.

    ulong DDw

    64-bit value to load.

    | Edit this page View Source

    SetDWord(byte[], int, uint)

    Loads a uint value (32-bit DWORD) into a byte array starting at the specified index value with the MSB first (Big Endian format).

    Declaration
    public static void SetDWord(byte[] DestBytes, int Start, uint DWord)
    Parameters
    Type Name Description
    byte[] DestBytes

    Destination byte array. Must contain at least 4 bytes starting at the Start value.

    int Start

    Starting index of the 4 byte long field.

    uint DWord

    32-bit value to load.

    | Edit this page View Source

    SetWord(byte[], int, ushort)

    Loads a ushort value (16-bit WORD) into a byte array starting at the specified index value with the MSB first (Big Endian format).

    Declaration
    public static void SetWord(byte[] DestBytes, int Start, ushort Word)
    Parameters
    Type Name Description
    byte[] DestBytes

    Destination byte array. Must contain at least 2 bytes starting at the Start value.

    int Start

    Starting index of the 2 byte long field.

    ushort Word

    16-bit value to load.

    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX