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

Feature request- Adding in user data for access in callbacks #249

@ahonkan

Description

@ahonkan

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions