24#ifndef XCOM_DETECTOR_H
25#define XCOM_DETECTOR_H
28#include "xdr_gen/xcom_vp.h"
30#define DETECTOR_LIVE_TIMEOUT 5.0
Definition: site_struct.h:43
double seconds()
Definition: task.cc:310
double detector_state[NSERVERS]
Definition: xcom_detector.h:32
void send_global_view()
Definition: xcom_detector.cc:384
void update_detected(struct site_def *site)
Definition: xcom_detector.cc:149
void init_detector(detector_state ds)
Definition: xcom_detector.cc:72
int is_server_connected(struct site_def const *site, node_no node)
States if a server is still physically connected to another server.
Definition: xcom_detector.cc:102
int may_be_dead(detector_state const ds, node_no i, double seconds)
Definition: xcom_detector.cc:67
void invalidate_detector_sites(struct site_def *site)
Definition: xcom_detector.cc:267
int note_detected(struct site_def const *site, node_no node)
#define NSERVERS
Definition: xcom_limits.h:27