Scheduling an Event.
Allocate the GloMoSim Message:
Message* msg = GLOMO_MsgAlloc(node, MyID, MyLayer, MyProtocol, MSG_LAYER_PROTO_MY_EVENT );
Set the Event Specific Information:
MyEventInfoType* MyEventInfo;
GLOMO_MsgInfoAlloc(node, msg, sizeof(MyEventInfoType));
MyEventInfo = GLOMO_MsgInfo(msg);
MyEventInfo->MyFirstParameter =1;
…
Schedule the Event:
GLOMO_MsgSend(node, msg, MyChosenDelay);