- - soon I will give up for the night, but what I'd like to do is describe my challenge
I'd also like to ensure the internet is accessable and, if not avaialable, turn it on by reset or other means (prompt user what to do)
I think the best way to do this is to ping each local computer and set a status vairable dependning on if/how fast they respond
I don't want this to be an app that waits forever to locate a computer...
I'm not really sure where to go from there
in pseudo code:
<code>
For ComputersInList
{
NetStatus[i] = getStatus(computerIP, timeout)
Next ComputerInList
If ComputerInList=0 break
i++
}
while i < NumberOfComputersInList
{
if NetStatus[i] = up
{
writeStatusToHTML(ip,status="good")
}
else
{
writeStatusToHTML(ip,status="bad")
}
i++
}
RefreshStatusDisplay

No comments:
Post a Comment