diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-07 14:30:27 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-07-07 14:30:27 +0200 |
commit | 22c01818744c1fd386d5d943afe6fda0a51396ed (patch) | |
tree | d253ebcdbb6c16e760f1ace35010ab2a69b81e67 /pingu_burst.h | |
parent | 2d18ede622fcdb7dc5d53863c711437bef79fe76 (diff) | |
download | pingu-22c01818744c1fd386d5d943afe6fda0a51396ed.tar.bz2 pingu-22c01818744c1fd386d5d943afe6fda0a51396ed.tar.xz |
Add headers for libev based pingu
Diffstat (limited to 'pingu_burst.h')
-rw-r--r-- | pingu_burst.h | 23 |
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 |