Exemplo n.º 1
0
 static void RunNetClientListener()
 {
     try
     {
         GTCListener        = new GolTcpClient(ServerIP);
         clientListenThread = new Thread(GTCListener.ListenServerBroadcast);
         clientListenThread.IsBackground = true;
         clientListenThread.Start(FPReady);
     }
     catch (Exception E)
     {
         Console.WriteLine(E);
     }
 }
Exemplo n.º 2
0
 static void RunNetClientDialogue()
 {
     try
     {
         GTCDialogue          = new GolTcpClient(ServerIP);
         clientDialogueThread = new Thread(GTCDialogue.ServerDialog);
         clientDialogueThread.IsBackground = true;
         clientDialogueThread.Start(new EventWaitHandle[2] {
             gotDataFromServer, srvDialCtrl
         });
     }
     catch (Exception E)
     {
         Console.WriteLine(E);
     }
 }