• 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 RawPacket

    When using a TransformConnector, a RTP/RTCP packet is represented using RawPacket. RawPacket stores the buffer holding the RTP/RTCP packet, as well as the inner offset and length of RTP/RTCP packet data.

    After transformation, data is also stored in RawPacket objects, either the original RawPacket (in place transformation), or a newly created RawPacket.

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

    Constructors

    | Edit this page View Source

    RawPacket()

    Initializes a new empty RawPacket instance.

    Declaration
    public RawPacket()
    | Edit this page View Source

    RawPacket(byte[], int, int)

    Initializes a new RawPacket instance with a specific byte array buffer.

    Declaration
    public RawPacket(byte[] data, int offset, int length)
    Parameters
    Type Name Description
    byte[] data

    The byte array to be the buffer of the new instance

    int offset

    The offset in buffer at which the actual data to be represented by the new instance starts

    int length

    The number of bytes in buffer which constitute the actual data to be represented by the new instance

    Fields

    | Edit this page View Source

    EXT_HEADER_SIZE

    The size of the extension header as defined by RFC 3550.

    Declaration
    public const int EXT_HEADER_SIZE = 4
    Field Value
    Type Description
    int
    | Edit this page View Source

    FIXED_HEADER_SIZE

    The size of the fixed part of the RTP header as defined by RFC 3550.

    Declaration
    public const int FIXED_HEADER_SIZE = 12
    Field Value
    Type Description
    int
    | Edit this page View Source

    RTP_PACKET_MAX_SIZE

    Maximum RTP packet size

    Declaration
    public const int RTP_PACKET_MAX_SIZE = 8192
    Field Value
    Type Description
    int

    Methods

    | Edit this page View Source

    Append(byte[], int)

    Append a byte array to the end of the packet. This may change the data buffer of this packet.

    Declaration
    public void Append(byte[] data, int len)
    Parameters
    Type Name Description
    byte[] data

    Data byte array to append

    int len

    The number of bytes to append

    | Edit this page View Source

    GetBuffer()

    Gets the buffer containing the content of this packet

    Declaration
    public MemoryStream GetBuffer()
    Returns
    Type Description
    MemoryStream
    | Edit this page View Source

    GetCsrcCount()

    Returns the number of CSRC identifiers currently included in this packet.

    Declaration
    public int GetCsrcCount()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetData()

    Gets the data in the RawPacket

    Declaration
    public byte[] GetData()
    Returns
    Type Description
    byte[]

    Returns a byte array containing the data.

    | Edit this page View Source

    GetExtensionBit()

    Returns true if the extension bit of this packet has been set and false otherwise.

    Declaration
    public bool GetExtensionBit()
    Returns
    Type Description
    bool
    | Edit this page View Source

    GetExtensionLength()

    Returns the length of the extensions currently added to this packet.

    Declaration
    public int GetExtensionLength()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetHeaderLength()

    Gets RTP header length from a RTP packet

    Declaration
    public int GetHeaderLength()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetLength()

    Get the length of this packet's data

    Declaration
    public int GetLength()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetPaddingSize()

    Get RTP padding size from a RTP packet

    Declaration
    public int GetPaddingSize()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetPayload()

    Gets the RTP payload (bytes) of this RTP packet.

    Declaration
    public byte[]? GetPayload()
    Returns
    Type Description
    byte[]
    | Edit this page View Source

    GetPayloadLength()

    Gets the RTP payload length from a RTP packet

    Declaration
    public int GetPayloadLength()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetPayloadType()

    Gets the RTP payload type from a RTP packet

    Declaration
    public byte GetPayloadType()
    Returns
    Type Description
    byte
    | Edit this page View Source

    GetRTCPSSRC()

    Gets the RTCP SSRC from a RTCP packet

    Declaration
    public int GetRTCPSSRC()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetSRTCPIndex(int)

    Gets the SRTCP sequence number from a SRTCP packet

    Declaration
    public int GetSRTCPIndex(int authTagLen)
    Parameters
    Type Name Description
    int authTagLen
    Returns
    Type Description
    int
    | Edit this page View Source

    GetSSRC()

    Get RTP SSRC from a RTP packet

    Declaration
    public int GetSSRC()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetSequenceNumber()

    Gets the RTP sequence number from a RTP packet

    Declaration
    public int GetSequenceNumber()
    Returns
    Type Description
    int
    | Edit this page View Source

    GetTimestamp()

    Returns the timestamp for this RTP RawPacket.

    Declaration
    public long GetTimestamp()
    Returns
    Type Description
    long
    | Edit this page View Source

    Grow(int)

    Grow the internal packet buffer.

    This will change the data buffer of this packet but not the length of the valid data.Use this to grow the internal buffer to avoid buffer re-allocations when appending data.

    Declaration
    public void Grow(int delta)
    Parameters
    Type Name Description
    int delta

    Number of bytes to grow

    | Edit this page View Source

    ReadInt(int)

    Reads an integer from this packet at specified offset

    Declaration
    public int ReadInt(int off)
    Parameters
    Type Name Description
    int off

    Offset to the integer to be read

    Returns
    Type Description
    int
    | Edit this page View Source

    ReadRegion(int, int)

    Reads a byte region from a specified offset with a specified length

    Declaration
    public byte[]? ReadRegion(int off, int len)
    Parameters
    Type Name Description
    int off

    Offset to the region to be read

    int len

    Length of the region to be read

    Returns
    Type Description
    byte[]
    | Edit this page View Source

    ReadRegionToBuff(int, int, byte[])

    Reads a byte region from a specified offset in the RTP packet and with a specified length into a given buffer

    Declaration
    public void ReadRegionToBuff(int off, int len, byte[] outBuff)
    Parameters
    Type Name Description
    int off

    Offset to the RTP packet of the region to be read

    int len

    Length of the region to be read

    byte[] outBuff

    Output buffer

    | Edit this page View Source

    ReadUnsignedIntAsLong(int)

    Reads an unsigned integer as a long at a specified offset

    Declaration
    public long ReadUnsignedIntAsLong(int off)
    Parameters
    Type Name Description
    int off

    Offset to the unsigned integer

    Returns
    Type Description
    long
    | Edit this page View Source

    ReadUnsignedShortAsInt(int)

    Reads an unsigned short at a specified offset as an int

    Declaration
    public int ReadUnsignedShortAsInt(int off)
    Parameters
    Type Name Description
    int off

    Offset to the unsigned short

    Returns
    Type Description
    int
    | Edit this page View Source

    Wrap(byte[], int, int)

    Wraps the data into raw packet for readable format

    Declaration
    public void Wrap(byte[] data, int offset, int length)
    Parameters
    Type Name Description
    byte[] data

    Data to write into the raw packet

    int offset

    Offset into the raw packet

    int length

    Number of bytes to write

    | Edit this page View Source

    shrink(int)

    Shrinks the buffer of this packet by specified length

    Declaration
    public void shrink(int delta)
    Parameters
    Type Name Description
    int delta

    Length to shrink

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