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

📄 main.h

📁 GPRS模块通过PPP方式实现TCPIP全过程
💻 H
字号:

/*****************************************
  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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -