Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Mac Programmer Help > Small problem w...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 8 Topic 3693 of 3795
Post > Topic >>

Small problem with SCNetworkCheckReachabilityByName

by Jim <jim@[EMAIL PROTECTED] > Apr 4, 2008 at 12:02 PM

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
 




 8 Posts in Topic:
Small problem with SCNetworkCheckReachabilityByName
Jim <jim@[EMAIL PROTEC  2008-04-04 12:02:13 
Re: Small problem with SCNetworkCheckReachabilityByName
Jim <jim@[EMAIL PROTEC  2008-04-04 12:04:37 
Re: Small problem with SCNetworkCheckReachabilityByName
Paul Russell <prussell  2008-04-04 13:40:29 
Re: Small problem with SCNetworkCheckReachabilityByName
Jim <jim@[EMAIL PROTEC  2008-04-04 13:44:56 
Re: Small problem with SCNetworkCheckReachabilityByName
Gregory Weston <uce@[E  2008-04-04 13:41:26 
Re: Small problem with SCNetworkCheckReachabilityByName
Jim <jim@[EMAIL PROTEC  2008-04-04 15:12:40 
Re: Small problem with SCNetworkCheckReachabilityByName
Gregory Weston <uce@[E  2008-04-04 14:55:18 
Re: Small problem with SCNetworkCheckReachabilityByName
Jim <jim@[EMAIL PROTEC  2008-04-04 16:08:06 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Jul 6 1:26:00 CDT 2008.