1

I thought the handleSelfMsg in BaseWaveApplLayeris is same to tictoc self message which means a node sends message to itself but it looks not.

So what is the necessity of handleSelfMsg in BaseWaveApplLayer?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user12345
  • 55
  • 9

1 Answers1

3

As the name is indicating, the method handles any messages which a node sent to itself. Those "messages" are simple events in the sense of a DES and not of a networking message. Then a certain action is taken corresponding to the received self-message's type.

Here, this is either sending of a simple beacon message (BasicSafetyMessage) or of a service advertisement (WaveServiceAdvertisment) (both of them are actual network messages) and scheduling of an event (self-message) for sending the next message (network) after a certain interval.

Julian Heinovski
  • 1,822
  • 3
  • 16
  • 27
  • so if a node sent message and message lost , self message will resend message by scheduling of an event (self-message)? – user12345 Sep 25 '17 at 10:42
  • 1
    I think it is important to clearly differentiate between when the term "message" refers to 1) what OMNeT++ calls events that are handled by its various modules and 2) the content of simulated frames. HandleSelfMessage refers to (1). – Christoph Sommer Sep 25 '17 at 17:36
  • I added this to the original post – Julian Heinovski Oct 02 '17 at 15:58