예제 #1
0
        public void Run()
        {
            var listener = new TcpListener(IPAddress.Any, Port);

            Running = true;

            listener.Start();

            while (Running)
            {
                var tcpClient = listener.AcceptTcpClient();

                var handler = new HttpHandler(tcpClient);
                new Thread(handler.ServiceClient).Start();
            }
        }