Talk About Network

Google





Mac > Mac Programmer Help > Further questio...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 1 Topic 3698 of 3889
Post > Topic >>

Further question about the Reachability API

by Jim <jim@[EMAIL PROTECTED] > Apr 7, 2008 at 09:24 AM

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
 




 1 Posts in Topic:
Further question about the Reachability API
Jim <jim@[EMAIL PROTEC  2008-04-07 09:24:55 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 20:01:05 PST 2009.