watchdog.h
来自「电信的97接口程序,用于把话单入库。这里是采用FTP方式采集话单」· C头文件 代码 · 共 78 行
H
78 行
/*+=============================================================================
File: watch.h
Summary: This file defines watchdog message and radiusd class.
History:
2000/07/11 V1.0
Start it by shencan@263.net
============================================================================+*/
#ifndef _WATCH_H
#define _WATCH_H
#define DEFAULT_TTL 30
#define DEFAULT_CHECK_TIME 5
#define DEFAULT_SERVER "127.0.0.1"
#define DEFAULT_PORT 10005
#define MESSAGE_LEN 128
#ifdef RMS_VERSION1
#define DEFAULT_PORT 10006
#endif
#ifdef RadiusIN
#define DEFAULT_PORT 10007
#endif
#ifndef RMS_VERSION1
#ifndef RadiusIN
#define DEFAULT_PORT 10005
#endif
#endif
enum MessageCode {
e_command = 100, // command from radiusd server
e_status = 200, // status message from radiusd server
e_warning = 300, // warning message from radiusd server
e_error = 400, // error message from radiusd server
e_fatalError= 500 // fatal error message from radiusd server
};
enum ProcessCode {
e_radiusd = 1,
e_radiusIN = 2,
e_radiusRMS1= 3,
e_radiusRMS2= 4,
};
class CProcessStatus {
public:
int m_processCode;
int m_ttl; // time to live value if radiusd server donot check it.
int m_msgCode; // the lastest message code from radiusd server.
char m_msg[MESSAGE_LEN+1]; // the lastest message from radiusd server.
};
class CWatchMessage {
public:
int m_processCode;
int m_msgCode; // the lastest message code from radiusd server.
int m_id;
char m_msg[MESSAGE_LEN+1]; // the lastest message from radiusd server.
};
void StartRadiusd(void);
void StopRadiusd(void);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?