tp.setExpectedMessages(num_msgs); // this starts the time
for(int i=0; i < num_msgs; i++) {
msg=new Message(null, local_addr, buf);
hdr=new NakAckHeader(NakAckHeader.MSG, i);
msg.putHeader("NAKACK", hdr);
transport.up(new Event(Event.MSG, msg));
if(i % 10000 == 0) {
System.out.println("passed up " + i + " messages");
}
}
synchronized(tp) {