📄 watchdog.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -