G
gc
Hello all,
I'm working on a console app that takes as input a list of domain names
then pings them. The data I want to work with is:
long rtt (ping round trip time in ms)
IPAddress ip
string hostName
Right now the app just prints the info in the order it's placed on the
command line.
What I want to do is store this information, then sort all the results
by rtt for display. (Lowest rtt first.)
I thought of adding an object that I could do something like add each
result (rtt, ip, hostName). The object could have a method to sort
itself and a tostring.
My problem is, how to represent the data structure rtt, ip, hostName?
Thanks in advance for any help!
I'm working on a console app that takes as input a list of domain names
then pings them. The data I want to work with is:
long rtt (ping round trip time in ms)
IPAddress ip
string hostName
Right now the app just prints the info in the order it's placed on the
command line.
What I want to do is store this information, then sort all the results
by rtt for display. (Lowest rtt first.)
I thought of adding an object that I could do something like add each
result (rtt, ip, hostName). The object could have a method to sort
itself and a tostring.
My problem is, how to represent the data structure rtt, ip, hostName?
Thanks in advance for any help!