コード例 #1
0
 private void RunThread()
 {
     new Thread(new ThreadStart(() =>
     {
         AsyncClient.Receive();
         AsyncClient.receiveDone.WaitOne();
         string msg = AsyncClient.GetResponse();
         if (msg != null)
         {
             ProcessMessage(msg, out string action, out string[] args);
             UIProcessor.Instance.ParseAction(action, args);
         }
     })).Start();
 }
コード例 #2
0
 public void Send(string data)
 {
     AsyncClient.Send(data + "\n");
 }
コード例 #3
0
 public void Close()
 {
     AsyncClient.Close();
 }
コード例 #4
0
 public void Initialize()
 {
     AsyncClient.StartClient();
 }