rtsp_client.h

来自「最基本的rtsp client 程序」· C头文件 代码 · 共 59 行

H
59
字号
/*--------------------------------------------------------		COPYRIGHT 2007 (C) DVN (Holdings) Ltd (Hongkong)	AUTHOR:		wangry@dvnchina.com	PURPOSE:	kasenna simple rtsp lib	CREATED:	2007-12-10  	MODIFICATION HISTORY	Date        By     Details	----------  -----  ---------------------------------------------------------------*/#ifndef _RTSP_H_#define _RTSP_H_ #ifdef __cplusplusextern "C" {#endif#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#define RTSP_ERR printf#define RTSP_ALERT printf#define RTSP_INFO printf#define RTSP_DBG#define CHECK_AND_FREE(a) if ((a) != 0) { free((void *)(a)); (a) = 0;}#define RECV_BUFF_DEFAULT_LEN 2048typedef struct rtsp_client_t {  char *url;  char *server_name;  char *session;  int next_cseq;  int net_busy;  int server_socket;  struct in_addr server_addr;  int server_port;  int recv_timeout;  int m_buffer_len;  int m_offset_on;  char m_recv_buffer[RECV_BUFF_DEFAULT_LEN + 1];}rtsp_client_t;#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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