Hi,
I am very new on mongoose and their is something I don't understanding in new mongoose version 6.1.
Previous version on 5.4 we use mg_set_option(server, "listening_port", "0"); and mg_get_option(server, "listening_port"); to get a dynamic listening port. But right now I just only see mg_bind(struct mg_mgr *, const char *, mg_event_handler_t); method and some of examples use static listening port. How can i generate dynamic listening port using mg_bind function.
My next question is okay I use mg_bind function and then write infinite for loop for mg_mgr_poll(&mgr,1000);. That function aways return MG_EV_POLL and never return MG_EV_RECV or something. Could you please explain me about these two question.
Thanks.
Wunna