vdr-plugin-satip/rtp.h

43 lines
956 B
C
Raw Normal View History

/*
* rtp.h: SAT>IP plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __SATIP_RTP_H_
#define __SATIP_RTP_H_
#include "socket.h"
2014-11-16 14:38:23 +01:00
#include "tunerif.h"
#include "pollerif.h"
class cSatipRtp : public cSatipSocket, public cSatipPollerIf {
private:
enum {
eRtpPacketReadCount = 50,
eMaxUdpPacketSizeB = TS_SIZE * 7 + 12,
eReportIntervalS = 300 // in seconds
};
2014-11-16 16:02:30 +01:00
cSatipTunerIf &tunerM;
unsigned int bufferLenM;
unsigned char *bufferM;
time_t lastErrorReportM;
int packetErrorsM;
int sequenceNumberM;
2015-01-14 16:58:13 +01:00
int GetHeaderLength(unsigned char *bufferP, unsigned int lengthP);
public:
2015-08-16 00:38:03 +02:00
explicit cSatipRtp(cSatipTunerIf &tunerP);
virtual ~cSatipRtp();
virtual void Close(void);
2014-11-16 15:56:59 +01:00
// for internal poller interface
public:
virtual int GetFd(void);
2014-11-25 21:04:34 +01:00
virtual void Process(void);
virtual cString ToString(void) const;
};
#endif /* __SATIP_RTP_H_ */