jrtplib  3.8.2
Public Member Functions | List of all members
RTCPUnknownPacket Class Reference

Describes an RTCP packet of unknown type. More...

#include <rtcpunknownpacket.h>

Inheritance diagram for RTCPUnknownPacket:
Inheritance graph
[legend]
Collaboration diagram for RTCPUnknownPacket:
Collaboration graph
[legend]

Public Member Functions

 RTCPUnknownPacket (uint8_t *data, size_t datalen)
 Creates an instance based on the data in data with length datalen. More...
 
- Public Member Functions inherited from RTCPPacket
bool IsKnownFormat () const
 Returns true if the subclass was able to interpret the data and false otherwise. More...
 
PacketType GetPacketType () const
 Returns the actual packet type which the subclass implements. More...
 
uint8_t * GetPacketData ()
 Returns a pointer to the data of this RTCP packet. More...
 
size_t GetPacketLength () const
 Returns the length of this RTCP packet. More...
 

Additional Inherited Members

- Public Types inherited from RTCPPacket
enum  PacketType {
  SR, RR, SDES, BYE,
  APP, Unknown
}
 Identifies the specific kind of RTCP packet. More...
 

Detailed Description

Describes an RTCP packet of unknown type. This class doesn't have any extra member functions besides the ones it inherited. Note that since an unknown packet type doesn't have any format to check against, the IsKnownFormat function will trivially return true.

Constructor & Destructor Documentation

RTCPUnknownPacket::RTCPUnknownPacket ( uint8_t *  data,
size_t  datalen 
)
inline

Creates an instance based on the data in data with length datalen. Since the data pointer is referenced inside the class (no copy of the data is made) one must make sure that the memory it points to is valid as long as the class instance exists.


The documentation for this class was generated from the following file: