i am new in using the OMNET++ simulator. Currently i want to build a network which consists of two or more nodes, each having two interfaces on which they can send messages out (e.g. Ethernet and Wireless).
I want to program the node behavior by myself. When a message arrives at a host, i want to define in the handleMessage(cMessage *msg)
method, whether the host should transmit the received message via Ethernet or Wireless interface.
Can i take the WirelessHost from the INET package for this scenario? If yes, how can i program the decision on what interface to use for retransmitting the received message? I followed the wireless tutorial from INET, but they only configure .ned
and .ini
files but not the .cc
files where the behavior is coded.
In the tutorial the UdpBasicApp
was used. It would be nice if i could write an own App like described above.
Thanks in advance!