Modifying the method communicator.cpp to acquire the packet header