mirror of
https://github.com/cesanta/mongoose.git
synced 2025-01-19 08:03:14 +08:00
commit
1c914bde1d
@ -32,7 +32,7 @@ int main(void) {
|
|||||||
// Create and configure the server
|
// Create and configure the server
|
||||||
server = mg_create_server(NULL);
|
server = mg_create_server(NULL);
|
||||||
mg_set_option(server, "listening_port", "8080");
|
mg_set_option(server, "listening_port", "8080");
|
||||||
mg_add_uri_handler(server, "/", index_html);
|
mg_set_request_handler(server, index_html);
|
||||||
|
|
||||||
// Serve request. Hit Ctrl-C to terminate the program
|
// Serve request. Hit Ctrl-C to terminate the program
|
||||||
printf("Starting on port %s\n", mg_get_option(server, "listening_port"));
|
printf("Starting on port %s\n", mg_get_option(server, "listening_port"));
|
||||||
|
Loading…
Reference in New Issue
Block a user