diff options
author | Dean Jansa <djansa@redhat.com> | 2005-10-06 19:02:22 +0000 |
---|---|---|
committer | Nathan Straz <nstraz@redhat.com> | 2008-09-23 09:37:45 -0400 |
commit | 89d2504db378c5b091db5229484af5c58851fa5f (patch) | |
tree | d78fbe6563111d03a0048fc151ce10a6fbddc2e5 /hbeat_test.c | |
parent | c7a556d4039d1195fb11c29e5eba28e3e0ee7c0d (diff) | |
download | qarsh-89d2504db378c5b091db5229484af5c58851fa5f.tar.gz qarsh-89d2504db378c5b091db5229484af5c58851fa5f.tar.xz qarsh-89d2504db378c5b091db5229484af5c58851fa5f.zip |
Add heartbeat interface lib files
Diffstat (limited to 'hbeat_test.c')
-rw-r--r-- | hbeat_test.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/hbeat_test.c b/hbeat_test.c new file mode 100644 index 0000000..8ea00ee --- /dev/null +++ b/hbeat_test.c @@ -0,0 +1,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; +} + + + |