netparam.h

来自「采集板软件和人机界面软件之间的通信协议实现。包含目标板(vxworks)和pc端」· C头文件 代码 · 共 46 行

H
46
字号
/***************************************************************
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 + =
减小字号Ctrl + -
显示快捷键?