I'm trying to get my head around the very basics of the reachability API
(as
suggested elsewhere). I found a wee bit of example code that I'm trying to
get working, but I'm having problems.
The code is essentially this:
#im****t "reachObject.h"
#im****t <CoreFoundation/CoreFoundation.h>
#im****t <SystemConfiguration/SystemConfiguration.h>
@[EMAIL PROTECTED]
reachObject
-(IBAction)button:(id)sender
{
...
...
...
cont char *hostname = "google.co.uk";
SCNetworkConnectionFlags flags;
if ( SCNetworkCheckReachabilityByName( hostname, &flags ) <---
problem
...
...
}
However, it won't compile. It's essentially claiming to know nothing about
SCNetworkCheckReachabilityByName.
I'm guessing that I'm not im****ting the correct framework.
Would that be correct?
Sorry for all these numpty questions.
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


|