how to modify the .h and .cc files to delay the packet