/********************************************************* * Program: UDPEcho2 * * Summary: This is an implementation of a UDP version of ping. * * *********************************************************/ ********************************************************* Invocation: This invokes the server, specifying port 5000 ./server 5000 This invokes the client, specifying the server name as localhost (ie., the server runs on the same machiine), server port 5000, an iteration delay of 1 second, a message size of 1000 bytes, and 100 iterations. ./client localhost 5000 1 1000 10 The client shows the following output: Ping(1): 258 microseconds Ping(2): 82 microseconds Ping(3): 52 microseconds Ping(4): 1037 microseconds Ping(5): 80 microseconds Ping(6): 53 microseconds Ping(7): 85 microseconds Ping(8): 85 microseconds Ping(9): 49 microseconds Ping(10): 61 microseconds Avg Ping: 184 microseconds Loss: 0 Percent ********************************************************* *********************************************************/