public void Execute(object parameter) { server.connectToServer(); string message = server.Read(); server.closeConnection(); }
/** * ConnectInfoServer methods connect to info-server in asychronized mode * whenever the server connected, the application continiously reads data from server * and update data set symbol table which contains all the properties values from server **/ public void ConnectInfoServer() { if (info_server != null && commands_server != null) { return; } info_server = new InfoServer(model.FlightInfoPort); info_server.connectToServer(); info_server.ReadDataContinously(); }