summaryrefslogtreecommitdiffstats
path: root/hbeat_test.c
blob: 8ea00ee879e055097bd7736150b408c9954dac88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <stdio.h>
#include "hbeat.h"

int
main(void)
{
	hbeat_t hb;
	int i;
	int timeout_max = 10;

	hb = hbeat_init("link-13", timeout_max);

	for (i = 0; i < 10; i++) {
		printf("hbeat() = %d\n", hbeat(hb));
		sleep(1);
	}

	hbeat_free(hb);
	
	return 0;
}