JRTPLIB 3.5.2 Chinese version-part8

Source: Internet
Author: User

 

RTCPRRPacket

----------------------------------------------------------------------- Header file: rtcprrpacket. h

---------------------------------------------------------------------- Inherited from: RTCPPacket

Class describes an RTCP receiver report data packet. The interface is as follows:

RTCPRRPacket (uint8_t * data, size_t datalen)

----- Create an RTCPRRPacket data packet object based on the data of datalen. Because data points to data is referenced inside the class (that is, data is not copied), you must ensure that the memory pointed to by the data Pointer is valid and valid during the existence of the object.

Uint32_t GetSenderSSRC () const

----- Return the ssrc of the (Session) Participant that sent the packet.

Int getexceptionreportcount () const

----- Return the number of receiving report blocks in the data packet. Not sure. Original article: Return the number of report blocks present in this packet .)

Uint32_t GetSSRC (int index) const

----- Return the ssrc of the report block received by the index. The value range of the index is from 0 to getexceptionreportcount ()-1. Note: (function) does not check the validity of the index range.

Uint8_t GetFractionLost (int index) const

----- Return the packet loss rate attribute in the receiving report specified by index. The value range of the index is the same as the above, and the validity of the index range is not checked.

Int32_t GetLostPacketCount (int index) const

----- Return the number of lost data packets in the acceptance report indicated by index. The description of index is the same as above.

Uint32_t GetExtendedHighestSequenceNumber (int index) const

----- Return the maximum serial number (?) of the extended in the receiving report indicated by index (??), The same as index.

Uint32_t GetJitter (int index) const

----- Return the jitter attribute in the receiving report indicated by index, which is the same as the index.

Uint32_t GetLSR (int index) const

----- Return the LSR attribute in the acceptance report indicated by index, which is the same as the index.

Uint32_t GetDLSR (int index) const

----- Return the DLSR attribute in the acceptance report indicated by index, which is the same as the index.

 

RTCPSDESPacket

----------------------------------------------------------------------- Header file: rtcpsdespacket. h

----------------------------------------------------------------------- Inherited from: RTCPPacket

This class describes the SDES data packets of RTCP and defines the following types in the class:

Enum ItemType {None, CNAME, NAME, EMAIL, PHONE, LOC, TOOL, NOTE, PRIV, Unknown };

These types are used to determine the type of each SDES item. None is used to indicate the end of traversing all items. Unknown is used to indicate that an item exists, but this item is not a standard type.

Class interface:

RTCPSDESPacket (uint8_t * data, size_t datalen)

----- Create an RTCPSDESPacket data packet object based on the data of datalen. Because data points to data is referenced inside the class (that is, data is not copied), you must ensure that the memory pointed to by the data Pointer is valid and valid during the existence of the object.

Int GetChunkCount () const

----- Return the number of SDES data blocks in the SDES data packet. Each data block has its own identifier.

Bool GotoFirstChunk ()

----- Start traversal. If no SDES data block exists, the function returns false. Otherwise, true is returned and the current data block is set to the first data block.

Bool GotoNextChunk ()

----- Set the current data block to the next valid data block. If no data block is available, false is returned; otherwise, true is returned.

Uint32_t GetChunkSSRC () const

----- Returns the SSRC identifier of the current data block.

Bool GotoFirstItem ()

----- Start traversing SDES items on the current data block. If no SDES item exists, false is returned. Otherwise, true is returned and the first item is set to the current item.

Bool GotoNextItem ()

----- If an item (Entry?) exists in the current data block ?), Set the current item to the next item, and return true; otherwise, return false.

ItemType GetItemType () const

----- Return the type of the current data item of the current data block.

Size_t GetItemLength () const

----- Return the length of the current data item of the current data block.

Uint8_t * GetItemData ()

----- Return the data of the current data item of the current data block.

If SDES private items are supported during library compilation, the following functions are also available when SDES is private.

Size_t GetPRIVPrifixLength ()

----- Return the prefix String Length of a private item.

Uint8_t * GetPRIVPrefixData ()

----- Return the actual data of the prefix string in the private item.

Size_t GetPRIVValueLength ()

----- Returns the length of the value string of a private item.

Uint8_t * GetPRIVValueData ()

----- Returns the actual data of the value string of the private item.

 

RTCPAPPPacket

------------------------------------------------------------------------ Header file: rtcpapppacket. h

------------------------------------------------------------------------ Inherited from: RTCPPacket

Class RTCPAPPPacket describes the rtcp app package, the interface is as follows:

RTCPAPPPacket (uint8_t * data, size_t datalen)

----- Create an RTCPAPPPacket data packet object based on the data of datalen. Because data points to data is referenced inside the class (that is, data is not copied), you must ensure that the memory pointed to by the data Pointer is valid and valid during the existence of the object.

Uint8_t GetSubType () const

----- Return the child type of the APP data packet.

Uint32_t GetSSRC () const

----- Return the source ssrc of the sent data packet.

Uint8_t * GetName ()

----- Return the name contained in the APP package, which consists of four bytes not ending with null.

Uint8_t * GetAPPData ()

----- Returns a pointer to the actual data.

Size_t GetAPPDataLength () const

----- Returns the length of the actual data.

 

RTCPBYEPacket

------------------------------------------------------------------------ Header file: rtcpbyepacket. h

------------------------------------------------------------------------ Inherited from: RTCPPacket

Class RTCPBYEPacket describes the rtcp bye package. The interface is as follows:

RTCPBYEPacket (uint8_t * data, size_t datalen)

----- Create an RTCPBYEPacket data packet object based on the data of datalen. Because data points to data is referenced inside the class (that is, data is not copied), you must ensure that the memory pointed to by the data Pointer is valid and valid during the existence of the object.

Int GetSSRCCount () const

----- Return the number of SSRC identifiers in the BYE packet.

Uint32_t GetSSRC (int index) const

----- Return the SSRC pointed out by index. The index range can be 0 to GetSSRCCount ()-1. Note that the index does not have a range of validity checks.

Bool HasReasonLength () const

------ If the reason for leaving is included in the BYE package, true is returned.

Size_t GetReasonLent () const

----- Returns the string length of the reason for source departure.

Uint8_t * GetReasonData ()

----- Returns the actual cause data.

 

RTCPUnknownPacket

------------------------------------------------------------------------ Header file: rtcpunknownpacket. h

------------------------------------------------------------------------ Inherited from: RTCPPacket

This class has no member functions except the inherited functions. Note: The IsKnownFormat function simply returns a true value because there is nothing to check for the unknown data packet format. Only constructors are available.

RTCPUnKnownPacket (uint8_t * data, size_t datalen)

----- Create an RTCPBYEPacket data packet object based on the data of datalen. Because data points to data is referenced inside the class (that is, data is not copied), you must ensure that the memory pointed to by the data Pointer is valid and valid during the existence of the object.

[To be continued !]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.