#endif
}
+void handle_network_change(meshlink_handle_t *mesh, bool online) {
+ if(!mesh->connections) {
+ return;
+ }
+
+ if(online) {
+ retry(mesh);
+ } else {
+ // We are off-line. Terminate all active connections.
+ for list_each(connection_t, c, mesh->connections) {
+ terminate_connection(mesh, c, false);
+ }
+ }
+}
+
static void __attribute__((constructor)) meshlink_init(void) {
crypto_init();
unsigned int seed;