Added an API for getting a callback when a ping reply is received.