Merge "Test both recvfrom() and read() in PingTest."