diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-22 14:43:24 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-08-22 14:46:10 +0200 |
commit | d3e49c4280f10584587fad83bc08c6a168c174d3 (patch) | |
tree | 9127d2f55556a0a049bef296c14da74e0b05904e /src/pingu_burst.h | |
parent | 82ec45bb8abf8052a558e8ad589b66b34a0084fa (diff) | |
download | pingu-d3e49c4280f10584587fad83bc08c6a168c174d3.tar.bz2 pingu-d3e49c4280f10584587fad83bc08c6a168c174d3.tar.xz |
move soures to src subdir
Diffstat (limited to 'src/pingu_burst.h')
-rw-r--r-- | src/pingu_burst.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/pingu_burst.h b/src/pingu_burst.h new file mode 100644 index 0000000..6e3b5e6 --- /dev/null +++ b/src/pingu_burst.h @@ -0,0 +1,24 @@ +#ifndef PINGU_BURST_H +#define PINGU_BURST_H + +#include <sys/types.h> +#include <sys/socket.h> + +#include <ev.h> + +#include "list.h" +#include "sockaddr_util.h" + +struct pingu_burst { + union sockaddr_any 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 |