typedef axl_bool(* MyQttdLoopOnRead)(MyQttdLoop *loop, MyQttdCtx *ctx, int descriptor, axlPointer ptr, axlPointer ptr2)

Handler definition used by myqttd_loop_set_read_handler to notify that the descriptor is ready to be read (either because it has data or because it was closed).

Parameters
loopThe loop wher the notification was found.
ctxThe MyQttd context where the loop is running.
descriptorThe descriptor that is ready to be read.
ptrUser defined pointer defined at myqttd_loop_set_read_handler and passed to this handler.
ptr2User defined pointer defined at myqttd_loop_set_read_handler and passed to this handler.
Returns
The function return axl_true in the case the read operation was completed without problem. Otherwise axl_false is returned indicating that the myqttd loop engine should close the descriptor.