17 #ifndef __OMNETPP_CNULLMESSAGEPROT_H
18 #define __OMNETPP_CNULLMESSAGEPROT_H
20 #include "omnetpp/cmessage.h"
21 #include "cparsimprotocolbase.h"
43 simtime_t lastEotSent;
48 PartitionInfo *segInfo =
nullptr;
56 MK_PARSIM_EIT = MK_PARSIM_BEGIN - 1,
57 MK_PARSIM_RESENDEOT = MK_PARSIM_BEGIN - 2
66 virtual void processReceivedBuffer(cCommBuffer *buffer,
int tag,
int sourceProcId)
override;
69 virtual void processReceivedEIT(
int sourceProcId, simtime_t eit);
72 virtual void sendNullMessage(
int procId, simtime_t now);
75 virtual void rescheduleEvent(cMessage *msg, simtime_t t);
92 virtual void setContext(cSimulation *sim,
cParsimPartition *seg, cParsimCommunications *co)
override;
111 virtual void startRun()
override;
116 virtual void endRun()
override;
121 virtual cEvent *takeNextEvent()
override;
126 virtual void putBackEvent(cEvent *event)
override;
133 virtual void processOutgoingMessage(cMessage *msg,
const SendOptions& options,
int procId,
int moduleId,
int gateId,
void *data)
override;