|
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 | processRtpPacket (Packet *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 |
|
protectedvirtual |
|
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::processRtpPacket().
|
protected |
The output file stream.
Referenced by closeOutputFile(), initialize(), and inet::rtp::RtpAvProfilePayload32Receiver::processRtpPacket().
|
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 processRtpPacket().