예제 #1
0
        public override bool Init()
        {
            Log.Debug("HttpServerModule Init");

            var xmldata = FileHelper.GetDataFromFile("Setting/ServerSetting.xml");

            m_ServerSetting = XmlHelper.XmlDeserialize <ServerSetting>(xmldata);

            m_HttpServer = new HttpServer();

            m_HttpServer.Start(m_ServerSetting.Login_Ip);

            //var str= XmlHelper.XmlSerialize_Str(new ServerSetting() { Login_Ip="111"});
            return(base.Init());
        }
예제 #2
0
        static void Main(string[] args)
        {
            var server = new HttpServer(7777, @"c:\temp");

            server.Start();
        }
예제 #3
0
        static void Main(string[] args)
        {
            var server = new HttpServer(1234);

            server.Start();
        }