aboutsummaryrefslogtreecommitdiffstats
path: root/pingu_burst.h
blob: 6e3b5e69bc75f93fb3c5695fe1aa1b386fce5e90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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