+#ifndef MESHLINK_NET_H
+#define MESHLINK_NET_H
+
/*
net.h -- header for net.c
- Copyright (C) 2014 Guus Sliepen <guus@meshlink.io>
+ Copyright (C) 2014, 2017 Guus Sliepen <guus@meshlink.io>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#ifndef __MESHLINK_NET_H__
-#define __MESHLINK_NET_H__
-
#include "event.h"
#include "sockaddr.h"
int timeout;
struct splay_tree_t *config_tree;
struct config_t *cfg;
- struct addrinfo *ai;
+ struct addrinfo *ai; // addresses from config files
struct addrinfo *aip;
+ struct addrinfo *nai; // addresses known via other online nodes (use free_known_addresses())
timeout_t ev;
struct meshlink_handle *mesh;
} outgoing_t;
extern int maxoutbufsize;
extern int addressfamily;
-extern unsigned replaywin;
extern int keylifetime;
extern int max_connection_burst;
extern CRITICAL_SECTION mutex;
#endif
-#endif /* __MESHLINK_NET_H__ */
+#endif