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

📄 netparam.h

📁 采集板软件和人机界面软件之间的通信协议实现。包含目标板(vxworks)和pc端(vc 6.0)两个代码
💻 H
字号:
/***************************************************************
netParam.h
网络通讯使用的参数
****************************************************************/

#ifndef _NETPARAM_H
#define _NETPARAM_H

#include <io.h>
#include <fcntl.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>


#define REMOTE_SERVER_IP		210.45.72.15
#define REMOTE_SERVER_IPBUFF	"210.45.72.15"
#define REMOTE_SERVER_PORT		2001


#define NET_CMD_HEADLEN		8
#define NET_MSG_MAXLEN		4096

#define DFT_CMD_NUM				0x0200
#define DFT_CMD_PARAM			0x00
#define DFT_FILE_NAME			"t0x0200.dat"

#define DFT_CMD_RETURN		"无"

#define NET_SEND_SHORT		1
#define NET_SEND_LONG		2

#define STAT_RECV_BEGIN		1
#define STAT_RECV_HEAD		2
#define STAT_RECV_MIDDLE	3
#define STAT_RECV_REAR		4

#define STAT_SEND_BEGIN		1
#define STAT_SEND_HEAD		2
#define STAT_SEND_REAR		3

#endif	/*_NETPARAM_H*/

⌨️ 快捷键说明

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