Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef __INET_RTPPAYLOADRECEIVER_H
00024 #define __INET_RTPPAYLOADRECEIVER_H
00025
00026
00027 #include <fstream>
00028 #include "INETDefs.h"
00029 #include "RTPPacket.h"
00030
00031
00036 class INET_API RTPPayloadReceiver : public cSimpleModule
00037 {
00038
00039 protected:
00040
00044 virtual ~RTPPayloadReceiver();
00045
00051 virtual void initialize();
00052
00057 virtual void handleMessage(cMessage *msg);
00058
00059 protected:
00060
00064 std::ofstream _outputFileStream;
00065
00069 std::ofstream _outputLogLoss;
00070
00074 int _payloadType;
00075
00079 cOutVector *_packetArrival;
00080
00085 virtual void processPacket(RTPPacket *packet);
00086
00092 virtual void openOutputFile(const char *fileName);
00093
00097 virtual void closeOutputFile();
00098 };
00099
00100 #endif
00101