main.h

来自「GPRS模块通过PPP方式实现TCPIP全过程」· C头文件 代码 · 共 41 行

H
41
字号

/*****************************************
  created by zhouzhigang 2005.06.19
  ****************************************/
#ifndef MAIN_H
#define MAIN_H


#ifndef PPP_MAXMRU 
   #define PPP_MAXMRU 1500
#endif

#define MAX_SYS_ERR_ALLOW  3

#define TCPIP_KEEPALIVE 1
#define MAX_KEEPALIVE_ERR_ALLOW 3

/*
*We check the state of socket every 10 minutes
*/
#define MAX_KEEPALIVE_PERIOD   600000   

/*
*the max time that we could wait for the packet
*return from server is 60 seconds
*/
#define MAX_SERVER_WATI_TIME 60000

/*define which connecting is default*/
typedef enum
{
    TCP_CONNECT_DEFAULT=  0,
    UDP_CONNECT_DEFAULT   = 1,

    STATE_UNKNOWN
}CONNECT_TYPE;

#endif
  

⌨️ 快捷键说明

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