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

MNRTPEncoderCommon Class Reference

#include <MNRTPEncoderCommon.h>

Inheritance diagram for MNRTPEncoderCommon:

Inheritance graph
[legend]
Collaboration diagram for MNRTPEncoderCommon:

Collaboration graph
[legend]
List of all members.

Protected Member Functions

Timeval get_std_timeout () const
void set_std_timeout (size_t pause)
void inc_total_bytes_read (size_t sz)
size_t get_total_bytes_read () const
virtual size_t get_abs_byte_pos ()
void inc_abs_byte_pos (size_t sz)
size_t get_accum_rtp_ts () const
void inc_accum_rtp_ts (size_t sz)
virtual void update_absolute_position (int32 offset)
void set_pulled_bytes (size_t pb)
size_t get_pulled_bytes ()
RetransBaseget_retrans ()
 MNRTPEncoderCommon (RetransBase *retrans)
virtual ~MNRTPEncoderCommon ()

Protected Attributes

Timeval _std_time_offset
size_t _total_bytes_read
size_t _absolute_byte_position
size_t _accum_rtp_timestamp
size_t _pulled_bytes

Constructor & Destructor Documentation

MNRTPEncoderCommon::MNRTPEncoderCommon RetransBase retrans  )  [protected]
 

virtual MNRTPEncoderCommon::~MNRTPEncoderCommon  )  [protected, virtual]
 


Member Function Documentation

virtual size_t MNRTPEncoderCommon::get_abs_byte_pos  )  [protected, virtual]
 

Implements MNRTPEncoderBase.

size_t MNRTPEncoderCommon::get_accum_rtp_ts  )  const [protected]
 

size_t MNRTPEncoderCommon::get_pulled_bytes  )  [protected, virtual]
 

This function returns the amount of bytes that were read from the file source.

Implements MNRTPEncoderBase.

RetransBase* MNRTPEncoderCommon::get_retrans  )  [protected]
 

Timeval MNRTPEncoderCommon::get_std_timeout  )  const [protected]
 

size_t MNRTPEncoderCommon::get_total_bytes_read  )  const [protected]
 

void MNRTPEncoderCommon::inc_abs_byte_pos size_t  sz  )  [protected]
 

void MNRTPEncoderCommon::inc_accum_rtp_ts size_t  sz  )  [protected]
 

void MNRTPEncoderCommon::inc_total_bytes_read size_t  sz  )  [protected]
 

void MNRTPEncoderCommon::set_pulled_bytes size_t  pb  )  [protected]
 

void MNRTPEncoderCommon::set_std_timeout size_t  pause  )  [protected]
 

virtual void MNRTPEncoderCommon::update_absolute_position int32  offset  )  [protected, virtual]
 

Implements MNRTPEncoderBase.


Member Data Documentation

size_t MNRTPEncoderCommon::_absolute_byte_position [protected]
 

If the rtp timestamp is modified by seek operation, the absolute byte position may differ from the total bytes read. This variable is unused in the file descriptor case. It needs explicit manipulation by the owner of this object to deviate from the number of total bytes read.

size_t MNRTPEncoderCommon::_accum_rtp_timestamp [protected]
 

Accumulated RTP timestamp from the start of this transmission. It is probably necessary to update this after a seek operation.

size_t MNRTPEncoderCommon::_pulled_bytes [protected]
 

Indicates the number of bytes that have been pulled from the source endpoint.

Timeval MNRTPEncoderCommon::_std_time_offset [protected]
 

The time offset is initialized in a codec-specific way and indicates the amount of system time that the caller should wait before requesting another packet, according to the RTP packaging specification for this codec. For PCMU the value is fixed. It may make sense to change the value for child classes.

size_t MNRTPEncoderCommon::_total_bytes_read [protected]
 

Indicates the overall number of bytes read from the file descriptor or the source endpoint, respectively. It has no meaning for the get_data function that relies on the file descriptor but it is necessary for computing the time stamps in the get_data function that relies on the source endpoints.


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