コード例 #1
0
        //public static AppSettings GetAppSettings () { return m_appSettings; }

        public static void createServer(RequestProcessor processor)
        {
            if (null == processor)
            {
                Program.processor = new RequestProcessor();
            }
            else
            {
                Program.processor = processor;
            }

            m_maxPayLoad = 1024; //Int32.Parse(ConfigMgr.AppSettings["maxPayLoad"]);
            StatusCodeDesc.init();
            HttpdServer.Transport.Socket sock = new HttpdServer.Transport.Socket("127.0.0.1", 15990);
            sock.StartListening();
        }