'I need to define 3 kinds of messages in omnet

I want to define 3 kinds of messages in omnet I know I have to use messagekind but I couldnt please help me I want help message, control message and jobs, which jobs should be processed thank you so much



Solution 1:[1]

Creating of messages is described in OMNeT++ Simulation Manual as well as in TicToc Tutorial.
In short:

  1. You have to create a new .msg file, for example ControlMessage.msg, with your content, for example:

    message ControlMessage {
      int someAddress;
      // ...
    }
    
  2. In your C++ code you have to add the following line:

    #include "ControlMessage_m.h"
    

(during compilation ControlMessage_m.h is automatically created from ControlMessage.msg)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jerzy D.