void myqtt_ctx_set_on_header ( MyQttCtx ctx,
MyQttOnHeaderReceived  on_header,
axlPointer  on_header_data 

Allows to configure the on header handler at context level.

The handler configured here affects to all client connections receiving messages on this context.

You can only configure one handler at time. Calling to configure a handler twice will replace previous one.

This handler is called when a message basic HEADER is received (qos, type, size, dup and retain indications). See MyQttOnHeaderReceived for more information.

ctxThe context where the handler will be configured.
on_headerThe handler to be configured.
on_header_dataUser defined pointer to be passed in into the on_msg when called.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().