WSAStartup(MAKEWORD(2, 2), &wsa_state);
#endif
- // Setup up everything
- // TODO: we should not open listening sockets yet
-
- if(!setup_network(mesh))
- return meshlink_close(mesh), NULL;
return mesh;
}
fprintf(stderr, "No name given!\n");
return false;
}
+ // Setup up everything
+
+ if(!setup_network(mesh))
+ return meshlink_close(mesh), NULL;
// Start the main thread