24 #define DECLARE_EVENT(name, roles, flags) \
25 static periodic_event_item_t name ## _event = \
26 PERIODIC_EVENT(name, \
27 PERIODIC_EVENT_ROLE_##roles, \
31 #define FL(name) (PERIODIC_EVENT_FLAG_ ## name)
33 #define CHANNEL_CHECK_INTERVAL (60*60)
35 check_canonical_channels_callback(time_t now,
const or_options_t *options)
41 return CHANNEL_CHECK_INTERVAL;
44 DECLARE_EVENT(check_canonical_channels, RELAY, FL(NEED_NET));
59 DECLARE_EVENT(expire_old_circuits_serverside, ROUTER, FL(NEED_NET));
62 or_register_periodic_events(
void)
void channel_check_for_duplicates(void)
Header file for channel.c.
void circuit_expire_old_circuits_serverside(time_t now)
Header file for circuituse.c.
Master header file for Tor-specific functionality.
static int expire_old_circuits_serverside_callback(time_t now, const or_options_t *options)
Header for core/or/or_periodic.c.
void periodic_events_register(periodic_event_item_t *item)
int public_server_mode(const or_options_t *options)
Header file for routermode.c.