Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            string     directory = Directory.GetCurrentDirectory() + "/html";
            HTTPServer myServer  = new HTTPServer(directory, "127.0.0.1", 3001);

            myServer.Start();
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     try
     {
         HTTPServer server = new HTTPServer(10, 80);
         server.Start();
     } catch (Exception e) {
         Console.WriteLine(e.Message);
     }
 }
Ejemplo n.º 3
0
        static void Main(string[] args)
        {
            Console.WriteLine("hello");
            string directory = Directory.GetCurrentDirectory() + "\\html";

            Console.WriteLine(directory);
            HTTPServer myServer = new HTTPServer(directory, "127.0.0.1", 3001);

            myServer.Start();
        }