Chapter 3: Two nodes
In this section, we will extend our simulation to two nodes and see how we can send messages between them.
Two nodes side by side
We have seen how to create a single node and how to implement its behavior. Now, we will create t...
Exploring messages
OMNeT++ has some very powerful tools to log information during a simulation and to analyze it lat...
Connecting nodes to each other
OMNeT++ is quite strict on how to exchange messages between any nodes (or modules) - you have to ...
Sending messages to another node
We will start over with our code, for simplicity. We will write a simulation with two blue nodes....
Add delays to connections
OMNeT++ allows you to easily setup a delay for any connection in Network.NED like this : node1.m...
Add parameters
Setting up parameters for a module in OMNeT++ always consists of three steps: Define the param...
More parameters
Parameters and the way you set them up and use them is one of the most useful features in OMNeT++...
Two nodes: Summary
Sending messages from one node to another is simple. You need to define gates in the nodes, conne...