summaryrefslogtreecommitdiff
path: root/ecp/server/timer.h
blob: 526f0b81a86bf9fce0271eb2df66430788e8bca3 (plain)
1
2
3
4
5
6
7
8
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);