static const char meshlink_tcp_label[] = "MeshLink TCP";
static const char meshlink_udp_label[] = "MeshLink UDP";
-#define MESHLINK_CONFIG_VERSION 1
-#define MESHLINK_INVITATION_VERSION 1
+#define MESHLINK_CONFIG_VERSION 2
+#define MESHLINK_INVITATION_VERSION 2
struct CattaServer;
struct CattaSServiceBrowser;
typedef struct {
int pinginterval;
int pingtimeout;
+ int fast_retry_period;
unsigned int min_connects;
unsigned int max_connects;
int edge_weight;
meshlink_log_level_t log_level;
// The most important network-related members come first
+ int reachable;
int listen_sockets;
listen_socket_t listen_socket[MAXSOCKETS];
time_t connection_burst_time;
time_t last_config_check;
time_t last_hard_try;
+ time_t last_unreachable;
timeout_t pingtimer;
timeout_t periodictimer;
struct connection_t *everyone;
uint64_t prng_state[4];
+ uint32_t session_id;
int next_pit;
int pits[10];
// Configuration
char *confbase;
- FILE *conffile;
+ FILE *lockfile;
void *config_key;
// Thread management