Computers and Technology

Write a small Ping CLI application for MacOS or Linux. The CLI app should accept a hostname or an IP address as its argument, then send ICMP "echo requests" in a loop to the target while receiving "echo-reply" messages. It should report loss and RTT times for each sent message. Please write it in C++.Also, how would you add support for both IPv4 and IPv6. Allow to set TTL as an argument and report the corresponding "time exceeded" ICMP messages.1. Build a tool with a CLI interface - The tool should accept as a positional terminal argument a hostname or IP address.2. Send ICMP "echo requests" in an infinite loop - As long as the program is running it should continue to emit requests with a periodic delay.3. Report loss and RTT times for each message - Packet loss and latency should be reported as each message received.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 01:30, bri2728
Jason works as an accountant in a department store. he needs to keep a daily record of all the invoices issued by the store. which file naming convention would him the most? a)give the file a unique name b)name the file in yymmdd format c)use descriptive name while naming the files d)use capital letters while naming the file
Answers: 3
image
Computers and Technology, 23.06.2019 10:50, Leffew
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?
Answers: 1
image
Computers and Technology, 23.06.2019 13:30, mads000
Drag the tiles to the correct boxes to complete the pairs. match the errors with their definitions. #name #value #ref when a formula produces output that is too lengthy to fit in the spreadsheet cell arrowright when you enter an invalid cell reference in a formula arrowright when you type text in cells that accept numeric data arrowright when you type in a cell reference that doesn’t exist arrowright reset next
Answers: 1
image
Computers and Technology, 23.06.2019 20:30, lucywood2024
What is the biggest difference between section breaks and regular page breaks
Answers: 1
Do you know the correct answer?
Write a small Ping CLI application for MacOS or Linux. The CLI app should accept a hostname or an IP...

Questions in other subjects:

Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
History, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01
Konu
Mathematics, 10.09.2020 23:01