RTPPayloadReceiver.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                        RTPPayloadReceiver.h  -  description
00003                              -------------------
00004     begin            : Fri Aug 2 2007
00005     copyright        : (C) 2007 by Matthias Oppitz, Ahmed Ayadi
00006     email            : <Matthias.Oppitz@gmx.de> <ahmed.ayadi@sophia.inria.fr>
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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