set_option() public method

public set_option ( string option_name, string option_value ) : int
option_name string
option_value string
return int
Exemplo n.º 1
0
    static void Main()
    {
        Mongoose web_server = new Mongoose();

        // Set options and /foo URI handler
        web_server.set_option("ports", "8080");
        web_server.set_option("root", "c:\\");
        web_server.set_uri_callback("/foo", new MongooseCallback(UriHandler));

        // Serve requests until user presses "enter" on a keyboard
        Console.ReadLine();
    }
Exemplo n.º 2
0
	static void Main() {
		Mongoose web_server = new Mongoose();

		// Set options and /foo URI handler
		web_server.set_option("ports", "8080");
		web_server.set_option("root", "c:\\");
		web_server.set_uri_callback("/foo", new MongooseCallback(UriHandler));
        web_server.set_uri_callback("/dumpinfo", new MongooseCallback(UriDumpInfo));

		// Serve requests until user presses "enter" on a keyboard
		Console.ReadLine();
	}