using namespace std;
-int main(int argc, char *argv[]) {
+int main() {
// Open a new meshlink instance.
meshlink::mesh mesh;
return 1;
}
+ // Disable local discovery.
+
+ mesh.enable_discovery(false);
+
// Start and stop the mesh.
if(!mesh.start()) {
// Start and stop the mesh.
+ mesh.enable_discovery(false);
+
if(!mesh.start()) {
cerr << "Foo could not start a third time\n";
return 1;