Hi,
I'm using mongoose following the embeded mongoose example from
https://github.com/cesanta/mongoose/blob/master/docs/Embed.mdI'm working on Linux.
Here the code excerpt of the main function:
struct mg_server *server = mg_create_server(NULL, event_handler);
mg_set_option(server, "document_root", "."); // Serve current directory
mg_set_option(server, "listening_port", "8080"); // Open port 8080
for (;;) {
mg_poll_server(server, 1000); // Infinite loop, Ctrl-C to stop
}
mg_destroy_server(&server);
I need to have the server listen in IPV6. I've read about the -DUSE_IPV6 flag, but it doesn't seem to work for my case.
I've also read about using net_skeleton, but I don't seem to have it locally nor to find its definitive online location (found fossa instead).
What is the correct way to make server listen to IPV6?
Thanks
Raph