Having included the SystemConfiguration framework my code is now compiling
fine. My intention is to write a small app that tests whether or not my
ADSL
connection is down.
I _thought_ I could do something like :
SCNetworkCheckReachabilityByName( hostname, &flags )
and check that every minute or so. However, if I stick 'plus.net' as the
hostname (my ISP) and check, it works and says the reachability is fine.
If
I then turn my router off and cheeck again, it still says it's fine.
I assume it's not actually doing what I thought it was doing - I'd assumed
that it was doing something similar to bouncing a ping packet off the
host,
but I guess it must be answering a different question.
So my questions are: What _is_ it (SCNetworkCheckReachabilityByName)
doing,
and how do I do what I originally wanted, which was to test the network
status.
Many thanks. I'm not after code, just a hint as to where I'm going wrong.
Jim
--
http://www.ursaMinorBeta.co.uk
"When one of the local cats, an especially fluffy creature with a vast
tail, rushed down the street towards me the other day, mewing delightedly,
I have to admit it was probably shouting 'HAZ CHEZBURGR?' " - Bella, ucsm


|