'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:
You have to create a new
.msgfile, for exampleControlMessage.msg, with your content, for example:message ControlMessage { int someAddress; // ... }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. |
