mirror of
				https://github.com/rofafor/vdr-plugin-satip.git
				synced 2023-10-10 11:37:42 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			792 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			792 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * 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"
 | |
| #include "tunerif.h"
 | |
| #include "pollerif.h"
 | |
| 
 | |
| class cSatipRtp : public cSatipSocket, public cSatipPollerIf {
 | |
| private:
 | |
|   enum {
 | |
|     eReportIntervalS = 300 // in seconds
 | |
|   };
 | |
|   cSatipTunerIf *tunerM;
 | |
|   unsigned int bufferLenM;
 | |
|   unsigned char *bufferM;
 | |
|   time_t lastErrorReportM;
 | |
|   int packetErrorsM;
 | |
|   int sequenceNumberM;
 | |
|   int GetHeaderLenght(int lengthP);
 | |
| 
 | |
| protected:
 | |
|   virtual int GetFd(void);
 | |
|   virtual void Action(int fdP);
 | |
| 
 | |
| public:
 | |
|   cSatipRtp(cSatipTunerIf &tunerP, unsigned int bufferLenP);
 | |
|   virtual ~cSatipRtp();
 | |
|   virtual void Close(void);
 | |
| };
 | |
| 
 | |
| #endif /* __SATIP_RTP_H_ */
 |