Exemple #1
0
        private static void Main()
        {
            ShowInfo("Сервер запущен");
            var server = new TCPServer("192.168.0.168", 8005);

            server.Start();
            ShowInfo("Ожидаю подключение...");
            while (true)
            {
                var client = server.NewClient();

                var task = Task.Run(() => TaskClient(client));
            }
        }