예제 #1
0
파일: Server.cs 프로젝트: Thad54/swe2
            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);
                }
            }
예제 #2
0
파일: HttpResponse.cs 프로젝트: Thad54/swe2
 internal ResponseProcessor(TcpClient s, Server.MyHttpServer lol, pluginM plugin)
 {
     this.socket = s;
        this.srv = lol;
        this.plugins = plugin;
 }