25 #ifndef CTRL_RUNTIME_MESSAGES_H_
26 #define CTRL_RUNTIME_MESSAGES_H_
payload: ctrl_create_thread_msg
payload: ctrl_msu_route_msg
All messages sent from controller to runtime are prefixed with this header.
Payload for messages of type CTRL_DELETE_MSU.
Payload for messages of type CTRL_DELETE_THREAD.
payload: ctrl_add_runtime_msg
ctrl_runtime_msg_type
The various top-level types of messages which can be sent from the controller to runtimes.
enum ctrl_msu_route_type type
Sub-type of message.
uint32_t ip
ip address of the runtime to connect to.
enum blocking_mode mode
The mode of the thread.
Payload for messages of type CTRL_MODIFY_ROUTE.
ctrl_route_msg_type
Sub-types for messages of type CTRL_MODIFY_ROUTE, which have payload ctrl_route_msg.
int route_id
Route to which the message applies.
payload: ctrl_create_msu_msg
size_t payload_size
Payload will be serialized following this struct.
Payload for messages of type CTRL_CREATE_MSU.
int msu_id
MSU to which the route is to be added or removed.
int type_id
Type ID of the MSU to create.
int thread_id
The ID to give to the created thread.
Payload for messages of type CTRL_CONNECT_TO_RUNTIME.
int id
Id for confirmation message (not implemented)
Payload for messages of type CTRL_CREATE_THREAD.
int route_id
ID of route to be added or removed.
blocking_mode
Whether an MSU is blocking or non-blocking.
Data with which an MSU is initialized, and the payload for messages of type CTRL_CREATE_MSU.
int msu_id
ID of the MSU to be deleted.
Payload for messages of type CTRL_MSU_ROUTES.
Adds an endpoint to a route.
int thread_id
The ID of the thread to be deleted.
ctrl_msu_route_type
Sub-types for payloads of type CTRL_MSU_ROUTES.
int msu_id
ID of the MSU to create.
Removes a route from an MSU.
payload: ctrl_delete_thread_msg
Interfaces for the creation and modification of the data-flow-graph and and general description of th...
int msu_id
ID of MSU to add/delete/modify.
int thread_id
ID of the Thread to which the message is to be delivered.
Deletes an endpoint from a route.
int type_id
MSU Type of the route.
enum ctrl_runtime_msg_type type
Identifies the type of payload that follows.
enum ctrl_route_msg_type type
sub-type of message
Modifies the key corresponding to a route endpoint.
bool force
If true, forces the deletion of an MSU even if it has existing states.
struct msu_init_data init_data
Initial data to pass to the MSU.
int port
port of the runtime to connect to
payload: ctrl_delete_msu_msg
unsigned int runtime_id
ID of the runtime to connect to.