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); } }
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); } }