As we know, AdhocHost is extended from WirelessHost, WirelessHost has three gate types:
Name | Direction | Size
--------------------------------------------------------
radioIn [ ] | input | numWlanInterfaces
pppg [ ] | inout | numPppInterfaces
ethg [ ] | inout | numEthInterfaces
What seems strange is that the direction of the RadioIn gate is the type of input, not inout, or the Inet developers should have a RadioOut gate for sending radio signal. When a node wants to send data, then how does that node send through a radio interface? What is the process of passing data packets through the WirelessHost components when sending data? Also, what is the process of passing data packets through the WirelessHost components when receiving data? Thanks in advance
sendDirect()
. That method does not require neither an output gate nor channel between sender and receiver. Receiver must have an input gate only.Reference: OMNeT++ Simulation Manual - Direct Message Sending