Ejemplo n.º 1
0
 private void StartServer(String hostName, UInt16 hostPort)
 {
     tai = new Tefreeca_client_interface();
     while (true)
     {
         Console.WriteLine("try connecting...");
         UI.set_listBox_delegate(listBox_state_log, new string[] { "서버 연결중.." }, Option_listBox.add);
         tai.ConnectToServer(hostName, hostPort);
         if (!tai.is_connected())
         {
             Console.WriteLine("Failure, Re Connecting..");
             UI.set_listBox_delegate(listBox_state_log, new string[] { "서버 연결 실패." }, Option_listBox.add);
             continue;
         }
         else
         {
             Console.WriteLine("Connected!");
             UI.set_listBox_delegate(listBox_state_log, new string[] { "서버 연결 성공." }, Option_listBox.add);
             break;
         }
     }
 }