Talk About Network

Google





Mac > Mac Programmer Help > Re: Small probl...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 8 Topic 3693 of 3889
Post > Topic >>

Re: Small problem with SCNetworkCheckReachabilityByName

by Paul Russell <prussell@[EMAIL PROTECTED] > Apr 4, 2008 at 01:40 PM

Jim wrote:
> 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.
> 

Presumably the missing parenthesis at the end of the if statement is 
also a typo ?

Paul
 




 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
localhost-V2008-12-19 Wed Jan 7 20:00:45 PST 2009.