a very simple watchdog
More...
#include <watchdog.h>
List of all members.
Public Member Functions |
void | Ping (Time delay) |
template<typename FN > |
void | SetFunction (FN fn) |
template<typename MEM_PTR , typename OBJ_PTR > |
void | SetFunction (MEM_PTR memPtr, OBJ_PTR objPtr) |
template<typename T1 > |
void | SetArguments (T1 a1) |
template<typename T1 , typename T2 > |
void | SetArguments (T1 a1, T2 a2) |
template<typename T1 , typename T2 , typename T3 > |
void | SetArguments (T1 a1, T2 a2, T3 a3) |
template<typename T1 , typename T2 , typename T3 , typename T4 > |
void | SetArguments (T1 a1, T2 a2, T3 a3, T4 a4) |
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 > |
void | SetArguments (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 > |
void | SetArguments (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5, T6 a6) |
Detailed Description
a very simple watchdog
If you don't ping the watchdog sufficiently often, it triggers its listening function.
Member Function Documentation
void ns3::Watchdog::Ping |
( |
Time |
delay |
) |
|
- Parameters:
-
After a call to this method, the watchdog will not be triggered until the delay specified has been expired. This operation is sometimes named "re-arming" a watchdog in some operating systems.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 , typename T6 >
void ns3::Watchdog::SetArguments |
( |
T1 |
a1, |
|
|
T2 |
a2, |
|
|
T3 |
a3, |
|
|
T4 |
a4, |
|
|
T5 |
a5, |
|
|
T6 |
a6 | |
|
) |
| | |
- Parameters:
-
| a1 | the first argument |
| a2 | the second argument |
| a3 | the third argument |
| a4 | the fourth argument |
| a5 | the fifth argument |
| a6 | the sixth argument |
Store these arguments in this Timer for later use by Timer::Schedule.
template<typename T1 , typename T2 >
void ns3::Watchdog::SetArguments |
( |
T1 |
a1, |
|
|
T2 |
a2 | |
|
) |
| | |
- Parameters:
-
| a1 | the first argument |
| a2 | the second argument |
Store these arguments in this Timer for later use by Timer::Schedule.
template<typename T1 , typename T2 , typename T3 , typename T4 >
void ns3::Watchdog::SetArguments |
( |
T1 |
a1, |
|
|
T2 |
a2, |
|
|
T3 |
a3, |
|
|
T4 |
a4 | |
|
) |
| | |
- Parameters:
-
| a1 | the first argument |
| a2 | the second argument |
| a3 | the third argument |
| a4 | the fourth argument |
Store these arguments in this Timer for later use by Timer::Schedule.
template<typename T1 , typename T2 , typename T3 , typename T4 , typename T5 >
void ns3::Watchdog::SetArguments |
( |
T1 |
a1, |
|
|
T2 |
a2, |
|
|
T3 |
a3, |
|
|
T4 |
a4, |
|
|
T5 |
a5 | |
|
) |
| | |
- Parameters:
-
| a1 | the first argument |
| a2 | the second argument |
| a3 | the third argument |
| a4 | the fourth argument |
| a5 | the fifth argument |
Store these arguments in this Timer for later use by Timer::Schedule.
template<typename T1 >
void ns3::Watchdog::SetArguments |
( |
T1 |
a1 |
) |
|
template<typename T1 , typename T2 , typename T3 >
void ns3::Watchdog::SetArguments |
( |
T1 |
a1, |
|
|
T2 |
a2, |
|
|
T3 |
a3 | |
|
) |
| | |
- Parameters:
-
| a1 | the first argument |
| a2 | the second argument |
| a3 | the third argument |
Store these arguments in this Timer for later use by Timer::Schedule.
template<typename FN >
void ns3::Watchdog::SetFunction |
( |
FN |
fn |
) |
|
template<typename MEM_PTR , typename OBJ_PTR >
void ns3::Watchdog::SetFunction |
( |
MEM_PTR |
memPtr, |
|
|
OBJ_PTR |
objPtr | |
|
) |
| | |
- Parameters:
-
| memPtr | the member function pointer |
| objPtr | the pointer to object |
Store this function and object in this Timer for later use by Timer::Schedule.
The documentation for this class was generated from the following file: