Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

rtcp_t Struct Reference

#include <MNRTPNetTypes.h>

Collaboration diagram for rtcp_t:

Collaboration graph
[legend]
List of all members.

Public Member Functions

u_int16 get_length () const
size_t get_byte_length () const
size_t get_total_byte_length () const
size_t get_app_data_byte_length () const
size_t get_bye_text_byte_length () const
text_item_tget_bye_text_ptr () const
u_int32 get_rr_ssrc () const
bool check_version () const
bool check_first_pt () const

Public Attributes

rtcp_common_t common
union {
   sr_t   sr
   rr_t   rr
   rtcp_sdes_t   sdes
   bye_t   bye
   app_t   app
r

Detailed Description

RTCP packet.
Memory representation of an RTCP packet. This struct is the memory representation of an actual RTCP packet in network byte order. Be careful when you modify this function. Because of the resulting changes to the memory layout, it is absolutely forbidden to add virtual functions, and it is absolutely forbidden to add new variables. Static functions and non-virtual member functions are OK.
See also:
rtcp_common_t

sr_t

rr_t

rtcp_sdes_t

bye_t

app_t


Member Function Documentation

bool rtcp_t::check_first_pt  )  const
 

Checks whether this packet's first report is correct.

Returns:
True if the version is correct, false otherwise.

bool rtcp_t::check_version  )  const
 

Checks whether this packet's version is understood.

Returns:
True if the version is understood, false otherwise.

size_t rtcp_t::get_app_data_byte_length  )  const
 

The size of the application packet's data in bytes.

Returns:
The length in bytes.

size_t rtcp_t::get_bye_text_byte_length  )  const
 

The size of the bye packet's optional text field in bytes.

Returns:
The length in bytes (may be 0). It is likely that padding bytes are included.

text_item_t* rtcp_t::get_bye_text_ptr  )  const
 

A pointer to the bye packet's optional text field.

Returns:
A pointer behind the list of terminating sources, casted to a text_item_t pointer. This pointer may be invalid.

size_t rtcp_t::get_byte_length  )  const
 

The RTP PDU length in bytes without the common header.

Returns:
The length in bytes, without the size of the common header part.

u_int16 rtcp_t::get_length  )  const
 

The RTP PDU length in 32-bit words without the common header.

Returns:
The length in 32-bit words, without the size of the common header part.

u_int32 rtcp_t::get_rr_ssrc  )  const
 

The sync source of the receiver report.

Returns:
The sync source value in host byte order;

size_t rtcp_t::get_total_byte_length  )  const
 

The RTP PDU length in bytes with the common header.

Returns:
The length in bytes, with the size of the common header part.


Member Data Documentation

app_t rtcp_t::app
 

bye_t rtcp_t::bye
 

rtcp_common_t rtcp_t::common
 

union { ... } rtcp_t::r
 

rr_t rtcp_t::rr
 

rtcp_sdes_t rtcp_t::sdes
 

sr_t rtcp_t::sr
 


The documentation for this struct was generated from the following file:
Generated on Sun Mar 6 13:36:09 2005 for Komssys by doxygen 1.3.8