24 #ifndef ROUTING_STRATEGIES_H_
25 #define ROUTING_STRATEGIES_H_
int shortest_queue_route(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
Chooses the local MSU with the shortest queue.
int route_to_id(struct msu_type *type, struct local_msu *sender, int msu_id, struct msu_endpoint *output)
Chooses the MSU with the given ID.
Defines a type of MSU, including callback and accessor functions.
int default_routing(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
The defualt routing strategy, using the key of the MSU message to route to a pre-defined endpoint...
int route_to_origin_runtime(struct msu_type *type, struct local_msu *sender, struct msu_msg *msg, struct msu_endpoint *output)
Routes an MSU message to the runtime on which the message originated.
The structure that represents an MSU located on the local machine.
A message that is to be delivered to an instance of an MSU.
An endpoint to which an msu_msg can be delivered.