// Connect to the server.
 public void Connect(string ip, string port)
 {
     try
     {
         if (!telnetClient.isConnect)
         {
             mutex = new Mutex();
             telnetClient.Connect(ip, port);
         }
     }
     catch (Exception e)
     {
         Error = e.Message + "\n";
     }
 }
Example #2
0
 // Connect to the server.
 public void Connect(string ip, string port)
 {
     try
     {
         if (!telnetClient.isConnect)
         {
             // Reset the values at the dashboard and the joystick.
             Reset();
             mutex = new Mutex();
             telnetClient.Connect(ip, port);
             this.Start();
         }
     }
     catch (Exception e)
     {
         Error = e.Message + "\n";
     }
 }