public void listen() { listener = new TcpListener(port); listener.Start(); pluginM plugins = new pluginM(); plugins.loadPlugins(); while (is_active) { TcpClient s = listener.AcceptTcpClient(); ResponseProcessor processor = new ResponseProcessor(s, this, plugins); Thread thread = new Thread(new ThreadStart(processor.process)); thread.Start(); Thread.Sleep(1); } }
internal ResponseProcessor(TcpClient s, Server.MyHttpServer lol, pluginM plugin) { this.socket = s; this.srv = lol; this.plugins = plugin; }