#include <libubox/uloop.h>
#include "stun.h"
+#define NETWORK_PEX_HOSTS_LIMIT 128
+
struct network;
struct network_pex_host {
struct list_head list;
uint64_t timeout;
uint64_t last_active;
+ uint64_t last_ping;
union network_endpoint endpoint;
};
struct network_pex {
struct uloop_fd fd;
struct list_head hosts;
+ int num_hosts;
struct uloop_timeout request_update_timer;
};