INET Framework for OMNeT++/OMNEST
|
The class RTPPayloadReceiver acts as a base class for modules processing incoming RTP data packets. More...
#include <RTPPayloadReceiver.h>
Public Member Functions | |
virtual | ~RTPPayloadReceiver () |
Destructor. More... | |
Protected Member Functions | |
virtual void | initialize () override |
Initializes the receiver module, opens the output file and creates a queue for incoming packets. More... | |
virtual void | handleMessage (cMessage *msg) override |
Method for handling incoming packets. More... | |
virtual void | processPacket (RTPPacket *packet) |
Writes contents of this RTPPacket into the output file. More... | |
virtual void | openOutputFile (const char *fileName) |
This method is called by initialize and opens the output file stream. More... | |
virtual void | closeOutputFile () |
Closes the output file stream. More... | |
Protected Attributes | |
std::ofstream | _outputFileStream |
The output file stream. More... | |
std::ofstream | _outputLogLoss |
The output file stream. More... | |
int | _payloadType |
The payload type this RTPPayloadReceiver module processes. More... | |
Static Protected Attributes | |
static simsignal_t | _rcvdPkRtpTimestampSignal = registerSignal("rcvdPkRtpTimestamp") |
An output signal used to store arrival of rtp data packets. More... | |
The class RTPPayloadReceiver acts as a base class for modules processing incoming RTP data packets.
|
virtual |
Destructor.
Disposes the queue object and closes the output file.
|
protectedvirtual |
Closes the output file stream.
Referenced by ~RTPPayloadReceiver().
|
overrideprotectedvirtual |
Method for handling incoming packets.
At the moment only RTPInnerPackets containing an encapsulated RTPPacket are handled.
|
overrideprotectedvirtual |
Initializes the receiver module, opens the output file and creates a queue for incoming packets.
Subclasses must overwrite it (but should call this method too)
Reimplemented in inet::rtp::RTPAVProfilePayload32Receiver.
Referenced by inet::rtp::RTPAVProfilePayload32Receiver::initialize().
|
protectedvirtual |
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
Referenced by initialize().
|
protectedvirtual |
Writes contents of this RTPPacket into the output file.
Must be overwritten by subclasses.
Reimplemented in inet::rtp::RTPAVProfilePayload32Receiver.
Referenced by handleMessage().
|
protected |
The output file stream.
Referenced by closeOutputFile(), openOutputFile(), and inet::rtp::RTPAVProfilePayload32Receiver::processPacket().
|
protected |
The output file stream.
Referenced by closeOutputFile(), initialize(), and inet::rtp::RTPAVProfilePayload32Receiver::processPacket().
|
protected |
The payload type this RTPPayloadReceiver module processes.
Referenced by inet::rtp::RTPAVProfilePayload32Receiver::initialize().
|
staticprotected |
An output signal used to store arrival of rtp data packets.
Referenced by processPacket().