I have two nodes. Node1 is sending data to node2. I want node2 to store the data from node1 e.g node id, packet etc in a database kind of thing. Is it possible in omnet++? And what should I change in my udpsink app?
void UDPSink::processPacket(cPacket *pk)
{
EV_INFO << "Received packet: " << UDPSocket::getReceivedPacketInfo(pk) << endl;
emit(rcvdPkSignal, pk);
delete pk;
numReceived++;
}
I m using the UDPBasicApp and UDPSink which receives the packets. But i want the sink to not discard the received packets but to atleast store the packets with sourceID and stuffs. What I am struggling with is "how do I create a database inet" . Do I just need to modify the UDPsink?
--
You received this message because you are subscribed to the Google Groups "OMNeT++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+u...@googlegroups.com.
Visit this group at https://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.