"Fossies" - the Fresh Open Source Software Archive 
Member "freeha-1.0/freehad.h" (23 Nov 2006, 651 Bytes) of package /linux/privat/old/freeha-1.0.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
1
2 /* message block definition */
3
4 #define HA_VERSION 2
5 #define HA_HOSTLEN 32
6 #define MAX_HA_HOSTS 16
7
8
9 /* states of an HA node.
10 * Ideally, should indicate the state of a named service.
11 * But since we only support a single servicetype across the entire 'cluster',
12 * state-of-service==state-of-node
13 */
14 enum { UNKNOWNSTATE, INITIAL, RUNNING, STOPPING, STARTING, STANDBY, ERRORED, TIMEDOUT, ENDLIST };
15
16 struct freeha_msg {
17 int version; /* freeha protocol rev == HA_VERSION */
18 char srchost[HA_HOSTLEN];
19 int status;
20 time_t timestamp; /* filled in by receiving host, not sending host */
21 /* used to determine stale/old data */
22 };
23
24