client_process.h

来自「网络MPEG4IP流媒体开发源代码」· C头文件 代码 · 共 40 行

H
40
字号
#include "systems.h" #include "msg_mbox.h"#include <msg_queue/msg_queue.h>#include <SDL.h>#include <SDL_thread.h>class CPlayerSession;class CClientProcess {public:	CClientProcess(void);	~CClientProcess(void);	int enable_communication(void);	void initial_response(int code, CPlayerSession *psptr, const char *errmsg);	int receive_messages(CPlayerSession *psptr);	int send_message(uint32_t to_command,					 uint32_t param);	int send_message(uint32_t to_command, 					 void *msg_body = NULL, 					 int len = 0);	int send_string(uint32_t to_command, 				    const char *string);	void msg_send_thread(void);private:	LPVOID m_map_file_read;	HANDLE m_from_gui_event;	HANDLE m_from_gui_resp_event;	HANDLE m_to_gui_event;	HANDLE m_to_gui_resp_event;	HANDLE m_map_file;	BOOL m_thread_created;	SECURITY_ATTRIBUTES m_saAttr;	PROCESS_INFORMATION m_piProcInfo; 	STARTUPINFO m_siStartInfo; 	CMsgQueue m_msg_queue;	SDL_sem *m_msg_queue_sem;	SDL_Thread *m_send_thread;	volatile int m_stop_send_thread;};

⌨️ 快捷键说明

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