Is there a way to make mg_mgr_poll() non blocking or make mg totally event drivent ? #1773
-
I dislike having mg_mgr_poll() in my main program loop. Is there a way to make mg_mgr_poll() non blocking or make mg totally event driven ? Is there a minimum timeout for mg_mgr_poll() ? 5 ms ? 1 ms ? Is there an event somewhere that could be responded to to initiate calling the mg_mgr_poll() process instead of having it in the main loop ? Is there a way to make the Mongoose library totally event driven, totally bypassing the need to call mg_mgr_poll() ? Mongoose rocks. Kudos to the devs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Mongoose is totally event driven, internally. |
Beta Was this translation helpful? Give feedback.
-
I know that mg is event driven internally. But it still needs the poll() call to respond to those events. Is there a way to respond directly to an internal event without having to use poll() ? I want to start using mg for some time sensitive UDP and WebSocket messaging. Is there a way to respond directly to a message received event as soon as it happens ? |
Beta Was this translation helpful? Give feedback.
I know that mg is event driven internally. But it still needs the poll() call to respond to those events.
Is there a way to respond directly to an internal event without having to use poll() ?
I want to start using mg for some time sensitive UDP and WebSocket messaging. Is there a way to respond directly to a message received event as soon as it happens ?