static void Main(string[] args) { string directory = Directory.GetCurrentDirectory() + "/html"; HTTPServer myServer = new HTTPServer(directory, "127.0.0.1", 3001); myServer.Start(); }
static void Main(string[] args) { try { HTTPServer server = new HTTPServer(10, 80); server.Start(); } catch (Exception e) { Console.WriteLine(e.Message); } }
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(); }