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

MntRTPPayloadDumper Class Reference

This component expects an MntRTPMPEGPacket as input, dumps the payload of the packet to a binary file, and push the received MntRTPMPEGPacket down streams. More...

#include <mnt_rtp_payload_dumper.h>

Inheritance diagram for MntRTPPayloadDumper:

MntComponent List of all members.

Public Member Functions

 MntRTPPayloadDumper (const char *name)
 Open a file using the given name for writing.
 ~MntRTPPayloadDumper ()
 Close the file opened for payload dumping.
virtual void recv (MntData *p)
 Receive an MntRTPMPEGPacket object, dump the payload to a file, and push the object to the down stream components.

Private Attributes

FILE * f_

Detailed Description

This component expects an MntRTPMPEGPacket as input, dumps the payload of the packet to a binary file, and push the received MntRTPMPEGPacket down streams.


Constructor & Destructor Documentation

MntRTPPayloadDumper::MntRTPPayloadDumper const char *  name  )  [inline]
 

Open a file using the given name for writing.

If the file cannot be opened, /tmp/rtp.dump will be used for writing, and if that fails, the program will crash.

Parameters:
name The name of the output file to dump the payload to.


Member Data Documentation

FILE* MntRTPPayloadDumper::f_ [private]
 

File pointer to the output file


The documentation for this class was generated from the following file:
Generated on Wed Sep 14 12:37:13 2005 for mnt by  doxygen 1.4.4