Closed the datagram socket.
Implemented the calculation of minimum, maximum, and average delays