#include <RTCP_Channel.h>
Public Member Functions | |
RTCP_Channel_Out (void) | |
Constructor. | |
~RTCP_Channel_Out (void) | |
Destructor. | |
void | updateStatistics (RTP_Packet *pkt) |
Update the channel statistics each time an RTP packet is sent. | |
ACE_UINT32 | timestamp (void) |
Returns the timestamp of the last RTP packet sent. | |
ACE_UINT32 | packets_sent (void) |
Returns the number of packets sent. | |
ACE_UINT32 | octets_sent (void) |
Returns the number of octets sent. | |
void | cname (const char *cname) |
Sets the canonical name of the source. | |
const char * | cname (void) |
Returns the canonical name of the source. | |
char | active (void) |
Returns whether or not this source is active. | |
Private Attributes | |
ACE_CString | cname_ |
Holds the canonical name for this channel. | |
char | active_ |
Flag to indicate whether or not this channel is active. | |
unsigned int | seq_num_ |
The sequence number of the last RTP packet sent. | |
unsigned int | timestamp_ |
The timestamp of the last RTP packet sent. | |
unsigned int | timestamp_offset_ |
The initial offset of the timestamp. | |
unsigned int | packets_sent_ |
The total number of packets sent. | |
unsigned int | octets_sent_ |
The total numbef of octets sent. |
Definition at line 167 of file RTCP_Channel.h.
|
Constructor.
Definition at line 313 of file RTCP_Channel.cpp.
00314 :cname_ ("cname"), 00315 active_ (0), 00316 timestamp_ (0), 00317 timestamp_offset_ (0), 00318 packets_sent_ (0), 00319 octets_sent_ (0) 00320 { 00321 } |
|
Destructor.
Definition at line 323 of file RTCP_Channel.cpp.
00324 { 00325 } |
|
Returns whether or not this source is active.
Definition at line 359 of file RTCP_Channel.cpp. Referenced by TAO_AV_RTCP_Callback::get_timeout(), and TAO_AV_RTCP_Callback::send_report().
00360 { 00361 return this->active_; 00362 } |
|
Returns the canonical name of the source.
Definition at line 192 of file RTCP_Channel.h.
00192 { return this->cname_.c_str(); } |
|
Sets the canonical name of the source.
Definition at line 189 of file RTCP_Channel.h. Referenced by TAO_AV_RTCP_Callback::send_report(), and TAO_AV_RTCP_Callback::TAO_AV_RTCP_Callback().
00189 { this->cname_ = cname; } |
|
Returns the number of octets sent.
Definition at line 353 of file RTCP_Channel.cpp. References octets_sent_. Referenced by TAO_AV_RTCP_Callback::send_report().
00354 { 00355 return this->octets_sent_; 00356 } |
|
Returns the number of packets sent.
Definition at line 347 of file RTCP_Channel.cpp. References packets_sent_.
00348 { 00349 return this->packets_sent_; 00350 } |
|
Returns the timestamp of the last RTP packet sent.
Definition at line 341 of file RTCP_Channel.cpp.
00342 { 00343 return this->timestamp_; 00344 } |
|
Update the channel statistics each time an RTP packet is sent.
Definition at line 328 of file RTCP_Channel.cpp. References octets_sent_, packets_sent_, RTP_Packet::payload_size(), seq_num_, RTP_Packet::sn(), and RTP_Packet::ts(). Referenced by TAO_AV_RTCP_Callback::send_frame().
00329 { 00330 // indicate that this source is active 00331 this->active_ = 1; 00332 00333 // Update various counters. 00334 this->octets_sent_ += data_packet->payload_size(); 00335 this->packets_sent_ ++; 00336 this->seq_num_ = data_packet->sn (); 00337 this->timestamp_ = data_packet->ts (); 00338 } |
|
Flag to indicate whether or not this channel is active.
Definition at line 202 of file RTCP_Channel.h. |
|
Holds the canonical name for this channel.
Definition at line 199 of file RTCP_Channel.h. |
|
The total numbef of octets sent.
Definition at line 217 of file RTCP_Channel.h. Referenced by octets_sent(), and updateStatistics(). |
|
The total number of packets sent.
Definition at line 214 of file RTCP_Channel.h. Referenced by packets_sent(), and updateStatistics(). |
|
The sequence number of the last RTP packet sent.
Definition at line 205 of file RTCP_Channel.h. Referenced by updateStatistics(). |
|
The timestamp of the last RTP packet sent.
Definition at line 208 of file RTCP_Channel.h. |
|
The initial offset of the timestamp.
Definition at line 211 of file RTCP_Channel.h. |