SetDefaultPage() public method

public SetDefaultPage ( string fileName ) : void
fileName string
return void
Exemplo n.º 1
0
        private void Start_Click(object sender, EventArgs e)
        {
            SetupDownloadDir(Directory.GetCurrentDirectory() + @"/Downloads/");

            RunningPlatform();

            GetCurrentFiles();

            irc = new SimpleIRC();

            webserver = new HttpServer(HttpMessageReceived, port);
            webserver.SetWebHomeDir(Directory.GetCurrentDirectory() + @"/");
            webserver.SetFileDir(Directory.GetCurrentDirectory() + "/Downloads");
            webserver.SetDefaultPage("index.html");
            streamserver = new HttpServer(HttpMessageReceived, port + 1);
            streamserver.SetWebHomeDir(Directory.GetCurrentDirectory() + @"/Downloads");
            streamserver.SetFileDir(Directory.GetCurrentDirectory() + "/Downloads");
            streamserver.SetDefaultPage("index.html");

            State.Text = "Running (" + GetLocalIPAddress() + ":" + port.ToString() + ")";
        }
Exemplo n.º 2
0
        private void Start_Click(object sender, EventArgs e)
        {
            SetupDownloadDir(Directory.GetCurrentDirectory() + @"/Downloads/");

            RunningPlatform();

            GetCurrentFiles();

            irc = new SimpleIRC();

            webserver = new HttpServer(HttpMessageReceived, port);
            webserver.SetWebHomeDir(Directory.GetCurrentDirectory() + @"/");
            webserver.SetFileDir(Directory.GetCurrentDirectory() + "/Downloads");
            webserver.SetDefaultPage("index.html");
            streamserver = new HttpServer(HttpMessageReceived, port + 1);
            streamserver.SetWebHomeDir(Directory.GetCurrentDirectory() + @"/Downloads");
            streamserver.SetFileDir(Directory.GetCurrentDirectory() + "/Downloads");
            streamserver.SetDefaultPage("index.html");

            State.Text = "Running (" + GetLocalIPAddress() + ":" + port.ToString() + ")";
        }