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

📄 watchdog.h

📁 电信的97接口程序,用于把话单入库。这里是采用FTP方式采集话单
💻 H
字号:
/*+=============================================================================
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -