private void ThreadTCPClient() { CTCPClient cl = new CTCPClient("127.0.0.1", 81, modelMarket); while (!cl.ConnectToServer()) { Thread.Sleep(1000); } }
public TestTcpClient() { _log = new CLogger("TestTcpClient"); _log.Log("============================================================================================================"); _tcpClient = new CTCPClient("83.146.113.81", 81, _tcpClientStub); while (!_tcpClient.ConnectToServer()) { Thread.Sleep(1000); } (new Thread(ThreadWrite)).Start(); while (true) { Thread.Sleep(100); } }