Skip to content

Add YOPT_S_DEFER_EVENT_CB for user custom event dispatch #323

Description

@halx99

Benefit: User can do custom packet resolve at network thread, such as decompress and crc check.

callback prototype:

typedef std::function<bool(event_ptr& event)> defer_event_cb;

callback return value

true: io_service will continue enque to event queue
false: io_service will drop the event

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions