aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_burst.h
diff options
context:
space:
mode:
Diffstat (limited to 'pingu_burst.h')
-rw-r--r--pingu_burst.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/pingu_burst.h b/pingu_burst.h
new file mode 100644
index 0000000..c42ddfa
--- /dev/null
+++ b/pingu_burst.h
@@ -0,0 +1,23 @@
+#ifndef PINGU_BURST_H
+#define PINGU_BURST_H
+
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#include <ev.h>
+
+#include "list.h"
+
+struct pingu_burst {
+ struct sockaddr saddr;
+ size_t saddrlen;
+ int pings_sent;
+ int pings_replied;
+ int active;
+ struct list_head ping_burst_entry;
+};
+
+void pingu_burst_timeout_cb(struct ev_loop *loop, struct ev_timer *w,
+ int revents);
+
+#endif