diff options
author | Uros Majstorovic <majstor@majstor.org> | 2024-05-06 02:08:31 +0200 |
---|---|---|
committer | Uros Majstorovic <majstor@majstor.org> | 2024-05-06 02:08:31 +0200 |
commit | 5f55d9d4d14635678e7f582215e3642de2e232a4 (patch) | |
tree | 3322f643e0fbc16984e8eebfca4de7bd4cf63391 /ecp/server/timer.h | |
parent | 1060b5e4712db12b52944bdcf7f2588cea23382b (diff) |
new ecp directory and vconn server
Diffstat (limited to 'ecp/server/timer.h')
-rw-r--r-- | ecp/server/timer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ecp/server/timer.h b/ecp/server/timer.h new file mode 100644 index 0000000..526f0b8 --- /dev/null +++ b/ecp/server/timer.h @@ -0,0 +1,9 @@ +#include <signal.h> + +#define ANN_BLOCK_TIME 7200 /* time to block announce before online switch (s) */ +#define ONLINE_SWITCH_PERIOD 86400 /* online switch period (s) */ + +int timer_set_next(time_t tv_now); +void timer_ann_block(union sigval timer_data); +void timer_online_switch(union sigval timer_data); +int timer_init(ECPSocket *sock); |