!7 sclass OIC > DynPrintLogAndEnabled { switchable int port = 6000; switchable bool verbose; transient OSInstancesConnector connector; start-thread { if (!enabled) ret; connector = OSInstancesConnector(port); connector.onLineReceived.add(voidfunc(S line, O socket, O state) enter { if (verbose) print("Line received: " + line); }); connector.start(); print("Connector on port " + port + " listening"); print("IPs: " + myIPs()); } void cleanMeUp { dispose connector; } }