0.1.1.2 : Internal data dispatcher
Since a Daemon can handle as many data types as needed, it embeds an internal dispatcher that routes each incoming RESULT_DATA message to the appropriate registered processing function, solely based on the type name of the received data, as Figure 2 shows. Processing functions are registered at initialisation time via addCallableMethod (for named RPC functions) or addDataCallableMethod (for data-driven callbacks). They can be plain functions or class methods with persistent state.
Figure 2 : The internal switch in a Daemon routes each incoming message to the proper method based on the type name of the data.