示例#1
0
        public WebServerClient(WebServer webserver, TcpClient tcpClietn)
        {
            this.tcpClietn = tcpClietn;
            this.webServer = webserver;

            webServer.activeClients += 1;
            webServer.totalClients += 1;
        }
示例#2
0
        public static void init()
        {
            Console.WriteLine("\nBegin web server service initialization...");
            Console.WriteLine("Launch web server on address {0}:{1}...", Config.webServer.ipAddress, Config.webServer.port);

            webServer = new WebServer(Config.webServer.ipAddress, Config.webServer.port);

            Console.WriteLine("Web server service initialized successfully.");
        }