Пример #1
0
 //the function that invokes when we call the command.
 void OnConnect()
 {
     //create connections and start the server in a new thread.
     new Thread(() =>
     {
         m_model.ConnectInfoServer(FlightServerIP, FlightInfoPort);
         m_model.ConnectCommandsClient(FlightServerIP, FlightCommandPort);
         m_model.StartInfoServer();
     }).Start();
 }