message_received


Description:

public virtual signal Response message_received (int command, MessageData message_data, uint time_)

The message_received signal is emitted each time a second instance of App with the same name as app is launched and sends a message using send_message.

The currently running instance should check command for the action to execute and message_data for eventual other parameters (see MessageData).

The signal handler should return a Response value depending on whether the command was successfully completed or not. If the unique_response_passthrough return value is used, the signal emission chain will continue until another handler will return another response code.

Parameters:

command

command received

message_data

message data

time_

timestamp of the command

Returns:

a Response