watchdog.h
来自「运行于linux上的CIMS套件」· C头文件 代码 · 共 38 行
H
38 行
#ifndef ns_watchdog_h#define ns_watchdog_h#include "agent.h"class Watchdog_Agent;class Watchdog_Timer : public TimerHandler {public: Watchdog_Timer(Watchdog_Agent *a) : TimerHandler() { a_ = a; }protected: virtual void expire(Event *e); Watchdog_Agent *a_;};class Watchdog_Agent : public Agent { public: Watchdog_Agent(); int command(int argc, const char*const* argv); virtual void timeout(int); protected: void start(); void initimer(); void stop(); virtual void sendpkt(); int running_; int random_; int maxpkts_; double interval_; int seqno_; Watchdog_Timer cbr_timer_; int off_rtp_;};#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?