int num1=0;
int num2=0;
int pkt_type = msg -> kind();
if (pkt_type ==1)
{
num1++;
ev << "Received data packet from Network1 \n";
ev << "Received \n"; num1 "packets from Network1 \n";
}
if (pkt_type ==0)
{
num1++;
ev << "Received voice packet from Network1 \n";
ev << "Received \n"; num1 "packets from Network1 \n";
}
if (pkt_type ==2)
{
num2++;
ev << "Received data packet from Network2 \n";
ev << "Received \n"; num2 "packets from Network2 \n";
}
if (pkt_type ==3)
{
num2++;
ev << "Received voice packet from Network2 \n";
ev << "Received \n"; num2 "packets from Network2 \n";
}