Write a code simulating PING command Aim: To Write the java program for simulating ping command Algorithm Step 1: start the program. Step 2: Include necessary package in java. Step 3: To create a process object p to implement the ping command. Step 4: declare one BufferedReader stream class object. Step 5: Get thedetails of the server 5.1: length of the IP address. 5.2: time required to get the details. 5.3: send packets , receive packets and lost packets. 5.4: minimum ,maximum and average times. Step 6: print the results. Step 7:Stop the program. Program: import java.io.*; import java.net.*; class pingserver { public static void main(String args[]) { try { String str; System.out.print(" Enter...
Comments
Post a Comment