![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 5
Rep Power: 0
![]() |
Programming question
To all hardcore programmers browsing this thread:
Hi! I want to create a program that measures "ping" response time. I want the program to detect a slowdown within a network (the response time generated by the "ping" command is higher than usual) and/or an intermittent network node (the "ping" generates a "request timed out"). What program can I use? If possible please include pseudocode/algorithm, syntax, or some good references or forums on the Web that can help me. Thanks! |
|
|
|
|
|
#2 |
|
Professional Programmer
|
are you running linux or windows? if you're using linux you can best use perl or BASH scripting, and if you're using windows you'll have to ahng on till a windows programmer drops by. basic pseudocode would look like this.
while(pinging)
parse output, determind TIME
if TIME is less than LOWER_BOUND
print that network is slowgood luck |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
the pseduocode above by Dizzutch is also how you can approach this problem in windows.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Professional Programmer
|
i'm just not sure what the easiest/best language is, for windows
|
|
|
|
|
|
#5 | |
|
Newbie
Join Date: Jan 2005
Posts: 5
Rep Power: 0
![]() |
I'm running Windows.
Quote:
|
|
|
|
|
|
|
#6 |
|
Professional Programmer
|
sure, you could use Java
|
|
|
|
|
|
#7 | |
|
Newbie
Join Date: Jan 2005
Posts: 5
Rep Power: 0
![]() |
What are the possible languages that I can use? It might be fun trying out all of them.
Thanks for the replies. Keep them coming. Quote:
|
|
|
|
|
|
|
#8 | |
|
Newbie
Join Date: Jan 2005
Posts: 5
Rep Power: 0
![]() |
Do you know the command/function that I can use? I'm not too familiar with Java.
Quote:
|
|
|
|
|
|
|
#9 |
|
Professional Programmer
|
well, you'll kinda need to learn how to program with Java first. here's sun's java tutorial
http://java.sun.com/docs/books/tutorial/ good luck Dizz |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|