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

📄 rc_ctl_data.h

📁 epoll机制的收发程序 只能在2.6内核上使用
💻 H
字号:
/*
 * 文 件 名:rc_ctl_data.h
 * 功    能:数据解析部分的函数接口
 * 作    者:马云龙
 * E_mail : mayunlong21@163.com
 * 开始时间:2007-4-24 9:38
 * 结束时间:
 * 修改时间:
 */
#ifndef		RC_CTL_DATA_H//2007-4-24 9:39
#define		RC_CTL_DATA_H



#define		DEFAULT_TRIGGER_USED_MD1		TYPE_CHECKED_YES//MD1默认值
#define		DEFAULT_TRIGGER_USED_MD2		TYPE_CHECKED_NO//MD2默认值
#define		DEFAULT_TRIGGER_USED_INFRARED	TYPE_CHECKED_NO//红外默认值
#define		DEFAULT_TRIGGER_LINGMD_MD1		15//MD1灵敏度默认值
#define		DEFAULT_TRIGGER_LINGMD_MD2		15//MD2灵敏度默认值
#define		DEFAULT_TRIGGER_SAVE_PC			TYPE_CHECKED_YES
#define		DEFAULT_TRIGGER_SAVE_CARD		TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_VIDEO_SAVE		TYPE_SAVE_VIDEO_VIDEO
#define		DEFAULT_TRIGGER_SND_MAIL		TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_SND_FTP			TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_DELAY			0
#define		DEFAULT_TRIGGER_SPACE			2
#define		DEFAULT_TRIGGER_WARING_TEXT		TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_TEXT_WARING		""
#define		DEFAULT_TRIGGER_WARING_AUDIO	TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_GPIO1			TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_TIMER_GPIO1		5
#define		DEFAULT_TRIGGER_GPIO2			TYPE_CHECKED_NO
#define		DEFAULT_TRIGGER_TIMER_GPIO2		5

#define		DEFAULT_SYSTEM_NTP_SERVER		"time.windows.com"
#define		DEFAULT_SYSTEM_NTP_ZONE			8
#define		DEFAULT_SYSTEM_NTP_SPACE		24


#define		DEFAULT_SECURITY_NAME_ROOT		"root"
#define		DEFAULT_SECURITY_PWD_ROOT		"827ccb0eea8a706c4c34a16891f84e7b"//12345的md5加密
#define		DEFAULT_SECURITY_NAME_USER		"user"
#define		DEFAULT_SECURITY_PWD_USER		"827ccb0eea8a706c4c34a16891f84e7b"//12345的md5加密
#define		DEFAULT_SECURITY_NAME_NET		"AmoyRico"


#define		DEFAULT_NET_IP					"192.168.9.1"
#define		DEFAULT_NET_SUBMASK				"255.255.0.0"
#define		DEFAULT_NET_GATEWAY				"192.168.9.254"
#define		DEFAULT_NET_PPPOE_ACC			""
#define		DEFAULT_NET_PPPOE_PWD			""

#define		DEFAULT_DDNS_STATE_DDNS			""


#define		DEFAULT_FPS_SND_CMA				5	//要求发送的默认帧率

#define		LEN_SND_FILE					350	//发送文件时每次要求发送的数据长度

#define		LEN_DATA_1024					1024//数据长度

/*
 * 功  能:解析并处理网络部分的数据
 * 参  数:data:从网络接收到的数据
 *         len_d:从网络接收到的数据长度
 *         info_cli:链接相关的信息
 * 返回值:成功返回值大于或者等于0,否则返回值小于0
 * 说  明:如果是与摄像机的链接则创建一个线程用来读管道
 */
int rc_deal_data_net(unsigned char *data, int len_d, struct_msg_con *info_cli);

/*
 * 功  能:创建网页相关的数据包
 * 参  数:webmsg:网页相关信息
 *         output:要输出的数据缓冲区
 *         pid:cgi进程的pid
 * 返回值:成功返回数据包的长度(包括包类型和长度),否则返回0
 */
unsigned short int rc_create_packet_web(struct_msg_web  webmsg, unsigned char *output, pid_t pid);

/*
 * 功  能:创建链接控制的数据包
 * 参  数:input:输入的数据
 *         len_input:输入的数据长度
 *         type:链接控制类型
 *         output:输出缓冲区
 * 返回值:成功返回数据包的长度(包括包类型和长度),否则返回0
 */
unsigned short int rc_create_packet_connect(unsigned char *input, unsigned short int len_input, unsigned char type, unsigned char *output);

/*
 * 功  能:创建对cam的视频请求包
 * 参  数:msg:请求信息
 *         output:输出结果
 * 返回值:成功返回数据包的总长度,否则返回0
 */
unsigned short int rc_create_p_con_v_c(struct_req_cam_v msg, unsigned char *output);











#endif//2007-4-24 9:39

⌨️ 快捷键说明

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