main.h
上传用户:yyhongfa
上传日期:2013-01-18
资源大小:267k
文件大小:1k
- /*****************************************
- 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
-