38 void initializeApp(
int stage);
41 void handleTimerEvent(cMessage* msg);
50 sendPacketTimer =
new cMessage(
"packet timer");
51 scheduleAt(simTime() + 20, sendPacketTimer);
54 insertTrigger(identifier);
60 getParentModule()->bubble(
"Got a message!");
66 if (msg == sendPacketTimer) {
67 cPacket *cmsg =
new cPacket(
"woot");
70 getParentModule()->bubble(
"Sending message!");
72 scheduleAt(simTime() + 20, sendPacketTimer);