I have not found a complete solution yet though. So what I am doing is using the same function you do first to determine if a connection is configured, and then I ping a known server that is up 24 hours a day. If that is not reached I ping another system through a different route. If I cannot reach either, then I assume the connection is down. This only works if you have an ip address you know should always be reachable though. I guess they could try to reach the required system and if unsuccessful, you'd know its down. I'd like a single solution instead.
Tracy
>Tracy,
>
>You are right!
>Well I guess is not the right function then, I should modify the program where I use it. :(
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"