Exemple #1
0
        static void Main(string[] args)
        {
            CreateRedirectionRulesFile();
            Server server = new Server(1000, "redirectionRules.txt");

            server.StartServer();
        }
Exemple #2
0
        static void Main(string[] args)
        {
            CreateRedirectionRulesFile();
            Server serverObj = new Server(8080);

            serverObj.StartServer();
        }
        static void Main(string[] args)
        {
            //for testing:
            CreateRedirectionRulesFile();

            //Start server
            Server server = new Server(1000, "redirectionRules.txt");

            server.StartServer();
        }
Exemple #4
0
 static void Main(string[] args)
 {
     // TODO: Call CreateRedirectionRulesFile() function to create the rules of redirection 
     CreateRedirectionRulesFile();
     //Start server
     // 1) Make server object on port 1000
     Server server = new Server(10001, "redirectionRules.txt");
     // 2) Start Server
     server.StartServer();
 }
Exemple #5
0
        static void Main(string[] args)
        {
            // TODO: Call CreateRedirectionRulesFile() function to create the rules of redirection
            CreateRedirectionRulesFile();
            //Start server
            // 1) Make server object on port 1000
            Server server = new Server(1000, "redirectionRules.txt");

            // 2) Start Server
            server.StartServer();
        }
Exemple #6
0
        static void Main(string[] args)
        {
            // TODO: Call CreateRedirectionRulesFile() function to create the rules of redirection
            CreateRedirectionRulesFile();
            //Start server
            // 1) Make server object on port 1000
            // 2) Start Server
            Server server = new Server(1000, Configuration.RedirectDictionarytFilePath);

            server.StartServer();
        }
Exemple #7
0
        static void Main(string[] args)
        {
            // TODO: Call CreateRedirectionRulesFile() function to create the rules of redirection
            CreateRedirectionRulesFile();

            //Start server
            // 1) Make server object on port 1000
            Server server = new Server(1000, @"E:\College\Network\HTTP\HTTP\project\Template[2018-2019]/redirectionRules.txt");

            // 2) Start Server
            server.StartServer();
        }
Exemple #8
0
        static void Main(string[] args)
        {
            Console.Title = "HTTP Server";
            Console.WriteLine("Server started on port:1000");
            // TODO: Call CreateRedirectionRulesFile() function to create the rules of redirection
            CreateRedirectionRulesFile();
            //Start server
            // 1) Make server object on port 1000
            Server server = new Server(1000, redirectionMatrixPath);

            // 2) Start Server
            server.StartServer();
        }
Exemple #9
0
        static void Main(string[] args)
        {
            // TODO: Call CreateRedirectionRulesFile() function to create the rules of redirection

            string path = "C:\\inetpub\\RedirectionRules.txt";

            CreateRedirectionRulesFile(path);

            //Start server
            Server ser = new Server(1000, path);

            ser.StartServer();
            // 1) Make server object on port 1000
            // 2) Start Server
        }
Exemple #10
0
 static void Main(string[] args)
 {
     CreateRedirectionRulesFile();
     Server server = new Server(1000, "redirectionRules.txt");
     server.StartServer();
 }