using NetClientCore.TCP; using NetCore; using NetCore.ContentParse; using Protocol.Protocol.MemoryPack.MemoryMessage; namespace NetClientCore; public static class ClientTest { static void Main(string[] args) { for (int i = 0; i < 2000; i++) { int index = i; // Task.Run(async delegate() // { // ClientTestLogicalParsing clientTestLogicalParsing = new ClientTestLogicalParsing(); // TCPClient tcpClient = // new TCPClient(); // tcpClient.Connect("127.0.0.1", 1000, clientTestLogicalParsing); // int count = 0; // while (true) // { // count++; // MemoryRequest memoryRequest = new MemoryRequest(); // memoryRequest.GameSendType = GameSendType.Login; // memoryRequest.count = index; // tcpClient.SendData(memoryRequest); // await Task.Delay(100); // } // }); // Thread.Sleep(10); } // ClientTestLogicalParsing clientTestLogicalParsing = new ClientTestLogicalParsing(); // TCPClient tcpClient = // new TCPClient(); // tcpClient.Connect("127.0.0.1", 1000, clientTestLogicalParsing); // int count = 0; while (true) { // count++; // MemoryRequest memoryRequest = new MemoryRequest(); // memoryRequest.GameSendType= GameSendType.Login; // memoryRequest.count = count; // tcpClient.SendData(memoryRequest); Thread.Sleep(10); } } }