Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

RTPPayloadReceiver Class Reference

#include <RTPPayloadReceiver.h>

Inheritance diagram for RTPPayloadReceiver:

RTPAVProfilePayload32Receiver RTPAVProfileSampleBasedAudioReceiver RTPAVProfilePayload10Receiver List of all members.

Protected Member Functions

virtual void processPacket (RTPPacket *packet)
virtual void openOutputFile (const char *fileName)
virtual void closeOutputFile ()

Protected Attributes

ofstream _outputFileStream
int _payloadType
cOutVector * _packetArrival

Detailed Description

The class RTPPayloadReceiver acts as a base class for modules processing incoming rtp data packets.


Member Function Documentation

void RTPPayloadReceiver::closeOutputFile  )  [protected, virtual]
 

Closes the output file stream.

Reimplemented in RTPAVProfileSampleBasedAudioReceiver.

void RTPPayloadReceiver::openOutputFile const char *  fileName  )  [protected, virtual]
 

This method is called by initialize and opens the output file stream. For most payload receivers this method works well, only when using a library for a payload type which provides an own open method it must be overwritten.

Reimplemented in RTPAVProfileSampleBasedAudioReceiver.

void RTPPayloadReceiver::processPacket RTPPacket packet  )  [protected, virtual]
 

Writes contents of this RTPPacket into the output file. Must be overwritten by subclasses.

Reimplemented in RTPAVProfilePayload32Receiver, and RTPAVProfileSampleBasedAudioReceiver.


Member Data Documentation

ofstream RTPPayloadReceiver::_outputFileStream [protected]
 

The output file stream.

cOutVector* RTPPayloadReceiver::_packetArrival [protected]
 

An output vector used to store arrival of rtp data packets.

int RTPPayloadReceiver::_payloadType [protected]
 

The payload type this RTPPayloadReceiver module processes.


The documentation for this class was generated from the following files:
Generated on Tue Sep 12 12:20:21 2006 for RTP model for OMNeT++ by  doxygen 1.4.2