XBT_LOG_NEW_DEFAULT_CATEGORY(msg_test,
"Messages specific for this msg example");
-
-typedef enum {
- PORT_22 = 0,
- MAX_CHANNEL
-} channel_t;
-
int master(int argc, char *argv[]);
int slave(int argc, char *argv[]);
int forwarder(int argc, char *argv[]);
MSG_error_t res = MSG_OK;
{ /* Simulation setting */
- MSG_set_channel_number(MAX_CHANNEL);
MSG_paje_output("msg_test.trace");
MSG_create_environment(platform_file);
}
exit(1);
}
- MSG_set_channel_number(0);
MSG_function_register("master", master);
MSG_function_register("slave", slave);
int timer_start; //set as 1 in the master process
-typedef enum {
- PORT_22 = 0,
- MAX_CHANNEL
-} channel_t;
-
//keep a pointer to all surf running tasks.
#define NTASKS 1500
int bool_printed = 0;
/* MSG_config("workstation/model", "GTNETS"); */
/* MSG_config("workstation/model","KCCFLN05"); */
{ /* Simulation setting */
- MSG_set_channel_number(MAX_CHANNEL);
MSG_create_environment(platform_file);
}
/* MSG_config("workstation/model","KCCFLN05"); */
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{ /* Application deployment */
/* MSG_config("workstation/model","KCCFLN05"); */
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{ /* Application deployment */
const char* platform_file = options[0];
const char* application_file = options[1];
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
MSG_function_register("node", node);
MSG_error_t res = MSG_OK;
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{
MSG_error_t res = MSG_OK;
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{
MSG_error_t res = MSG_OK;
{ /* Simulation setting */
- MSG_set_channel_number(0);
MSG_create_environment(platform_file);
}
{