How to extract data from an event? #2130
-
Apologies, my C++ is rusty and my C is non existent but if some generous person could hold my hand.... My user function is defined like so in my .h file;
I hope that's clear, many thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Your problem is not related to Mongoose nor its events, but on general programming. |
Beta Was this translation helpful? Give feedback.
Your problem is not related to Mongoose nor its events, but on general programming.
The event handler doesn't have to be static, you can have a global if you want, and you can do whatever you want to do with your data; put it in a shared variable, push it to a queue, save it to a file, write to a Un*x pipe, to an RTOS mailbox, whatever. Just keep the manager and the handlers on the same thread.