⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dvbo.h

📁 Example Dreambox CAM source code
💻 H
字号:
//========================//Header file for dvb.cpp//========================typedef struct ECMPIDS{	int CA_PID;	int CA_System_ID;} ECMPIDSTYPE;class dvbo_handler{	public:	//Properties (variables)	int 			dbg;										//Show debug info on the console, 0=no, other=yes	int				fd;											//Demultiplexer device file handle	ECMPIDSTYPE 	ECMpids[20];								//expect no more than 20 ECMs, an array is an ugly solution but easy to manage :-)	int				ECMpidcount;								//Amount of ECM pids found in the PMT																	unsigned char	ECMbuffer[4096];							//Buffer with encrypted ECM data to be forwarded to the cardserver or whatever EMU you would like to develop yourself!!!!	int				ECMbufsize;									//Size of the ECM data, needed for ncc->SendECM function!	int				lock;										//Valid (CAid, Providerid) pair found; use this to speed up ECM handling after initial scan of all CAid's, provider ids etc etc....	//Methods (functions)	public:														//lets just make all public, I don't like security :-)	dvbo_handler(int progid, int dmx_fd, int debug);			//The currently selected channel id and the required debuglevel are the inputs	//~dvbo_handler(void);										//Cleanup. Called at every channel change (zapping with the remote control of the Dreambox)	int  Set_Filter(int pid, char filt, char mask);				//Start the demux filtering	int  Stop_Filter(void);										//Stop the demux filtering	int  Parse_PAT(int prognr);									//PAT table analysis	void Parse_CA_Descriptor_Section(char *buf, int cplen);		//Helper function for the PMT table parser, retrieve the CAid from the PMT table	int  Parse_PMT(int prognr);									//PMT table analysis	int  Parse_ECM(int capid);									//Small function to retrieve the content of an ECM table, returns the provider id};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -