Added two callbacks in NetworkPeerListener to know when a packet has been sent.