This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Description
I find I have to use global variables to pass the header-complete, message-complete events etc. between the callback and the thread that is polling a socket for data. Can there be a void pointer in the parser struct that I can use to assign to my own structs so that I can use the callbacks to set particular values in my passed structure?
I could make my structure global and have the callbacks access the elements directly but that's not neat in a multi-threaded environment.
Thanks