You are blended simulation with the posix API.
Sleep is part of the posix API and interrupt the process for 3 seconds, but it doesn’t increase the simulation timer. The second send should be sendDelayed, you can remove the sleep, except if for an unknown reason you need to sleep the process
void interface::handleMessage(cMessage *msg){
EV << "interface: New message received!" << msg;
cMessage *msg2 = new cMessage("Um");
send(msg2, "out");
cMessage *msg3 = new cMessage("Dois");
sendDelayed(msg3,3.0,"out");
--
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 http://groups.google.com/group/omnetpp.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to omnetpp+unsubscribe@googlegroups.com.
HiI implemented the functionality and is working, thank you all =)