summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f62143)
raw | patch | inline | side by side (parent: 1f62143)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 9 Jul 2006 10:06:06 +0000 (12:06 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 9 Jul 2006 10:06:06 +0000 (12:06 +0200) |
src/liboping/oping.h | patch | blob | history |
diff --git a/src/liboping/oping.h b/src/liboping/oping.h
index 9fd7597fa04dc264188734f8fcc969e14dfd6c41..54d031017166495d0378ab7f6942902e123b4bf4 100644 (file)
--- a/src/liboping/oping.h
+++ b/src/liboping/oping.h
#define PING_OPT_TIMEOUT 0x01
#define PING_OPT_TTL 0x02
#define PING_OPT_AF 0x04
+#define PING_OPT_DATA 0x08
#define PING_DEF_TIMEOUT 1.0
#define PING_DEF_TTL 255
#define PING_DEF_AF AF_UNSPEC
+#define PING_DEF_DATA "Florian Forster <octo@verplant.org> http://verplant.org/"
/*
* Method definitions
pingobj_iter_t *ping_iterator_get (pingobj_t *obj);
pingobj_iter_t *ping_iterator_next (pingobj_iter_t *iter);
-const char *ping_iterator_get_host (pingobj_iter_t *iter);
-double ping_iterator_get_latency (pingobj_iter_t *iter);
+#define PING_INFO_HOSTNAME 1
+#define PING_INFO_ADDRESS 2
+#define PING_INFO_FAMILY 3
+#define PING_INFO_LATENCY 4
+#define PING_INFO_SEQUENCE 5
+#define PING_INFO_IDENT 6
+#define PING_INFO_DATA 7
+int ping_iterator_get_info (pingobj_iter_t *iter, int info,
+ void *buffer, size_t *buffer_len);
const char *ping_get_error (pingobj_t *obj);
+void *ping_iterator_get_context (pingobj_iter_t *iter);
+void ping_iterator_set_context (pingobj_iter_t *iter, void *context);
+
#endif /* OCTO_PING_H */