Example #1
0
        private static string root = @"\WINFS"; // \\NAND

        #endregion Fields

        #region Methods

        public static void Main()
        {
            httpServer = new HttpServer();
            httpServer.OnGetRequest += new GETRequestEventHandler(httpServer_OnGetRequest);
            //httpServer.Start("http", -1);
            httpServer.Start("http", 81);

            WSServer wss = new WSServer(12000);//, "http://localhost:81", "ws://localhost:2013");
            wss.Start();

            //NameService ns = new NameService(); // Declare as global, name service will stop once the object gets disposed
            //ns.AddName("Typhoon", NameService.NameType.Unique, NameService.MsSuffix.Default); // register your fez as FEZCOBRA on the local network

            //DbTest();

            Thread.Sleep(Timeout.Infinite);
        }