MamNodeApp
Description
Functions
cComponent::registerSignal
simsignal_t dataSentSignal = cComponent::registerSignal("dataSent");
cComponent::registerSignal
simsignal_t dataResentSignal = cComponent::registerSignal("dataResent");
cComponent::registerSignal
simsignal_t dataAckSignal = cComponent::registerSignal("dataAck");
disGen
int disGen(bool second);
initialize
virtual void initialize(int stage) override;
handleMessageWhenUp
virtual void handleMessageWhenUp(cMessage *msg) override;
finish
virtual void finish() override;
refreshDisplay
virtual void refreshDisplay() const override;
chooseDestAddr
virtual L3Address chooseDestAddr();
chooses random destination address
processPacket
virtual void processPacket(Packet *msg);
setSocketOptions
virtual void setSocketOptions();
processStart
virtual void processStart();
processSendMyData
virtual void processSendMyData();
processStop
virtual void processStop();
processDiscovery
virtual void processDiscovery(L3Address &src);
processFoundMobileSink
virtual void processFoundMobileSink(L3Address &src, int hops);
processDataSend
virtual void processDataSend(Packet *packet, L3Address &dest);
processFriendRequest
virtual void processFriendRequest(L3Address &src);
processFriendOffer
virtual void processFriendOffer(L3Address &src);
processFriendPoll
virtual void processFriendPoll(L3Address &src);
processFriendUpdate
virtual void processFriendUpdate(L3Address &src, int moreData);
processFriendClear
virtual void processFriendClear(L3Address &src);
sendFriendRequest
virtual void sendFriendRequest();
sendFriendEstablishedInternalMessage
virtual void sendFriendEstablishedInternalMessage();
sendFriendPoll
virtual void sendFriendPoll();
sendData
virtual void sendData(Ptr<const BMeshPacket> data, L3Address &dest);
sendDataSentAck
virtual void sendDataSentAck(Packet *packet, L3Address &dest);
sendMyDataToSink
virtual void sendMyDataToSink();
broadcastSimpleMessage
virtual void broadcastSimpleMessage(const char *msg);
broadcastSimpleMessage
virtual void broadcastSimpleMessage(const char *msg, int hops);
sendSimpleMessage
virtual void sendSimpleMessage(const char *msg, L3Address &dest, int hops);
handleStartOperation
virtual void handleStartOperation(LifecycleOperation *operation) override;
handleStopOperation
virtual void handleStopOperation(LifecycleOperation *operation) override;
handleCrashOperation
virtual void handleCrashOperation(LifecycleOperation *operation) override;
socketDataArrived
virtual void socketDataArrived(UdpSocket *socket, Packet *packet) override;
socketErrorArrived
virtual void socketErrorArrived(UdpSocket *socket, Indication *indication) override;
socketClosed
virtual void socketClosed(UdpSocket *socket) override;
random_char
virtual unsigned int random_char();
generate_hex
virtual std::string generate_hex(const unsigned int len);
~MamNodeApp
~MamNodeApp();
generate_uuid_v4
virtual std::string generate_uuid_v4();