Re: Figuring out if we have an active gateway
Re: Figuring out if we have an active gateway
- Subject: Re: Figuring out if we have an active gateway
- From: Paul Borokhov <email@hidden>
- Date: Sun, 7 Jan 2007 17:08:51 -0800
Thanks, though pardon the noobness, but how do I integrate this into an existing Cocoa app? For example, if I do something like:
SCNetworkReachabilityRef facebookName;
facebookName = SCNetworkReachabilityCreateWithName(kCFAllocatorDefault, [@"www.facebook.com" cStringUsingEncoding:NSISOLatin1StringEncoding]);
I get a compile-time error: "/usr/bin/ld: Undefined symbols:
_SCNetworkReachabilityCreateWithName"
...help? Thanks.
Paul
----------Original Message----------
On 1/7/07 21:16 , Finlay Dobbie (email@hidden) wrote:
> On 07/01/07, Paul Borokhov <email@hidden> wrote:
>> Hello,
>> Apologies if this has been asked before, or is in the docs...if so,
>> just give me a link. I did try searching already though.
>> My app retrieves XML from the web every few seconds. I do this
>> through a framework so I'm not using NSURL-anything.
>> My question is, how can I ask the system if the computer's current
>> network configuration has at least one active gateway? I.e. how can
>> I make sure that the XML retrieval will be successful BEFORE I try
>> to retrieve it?
>
> <http://developer.apple.com/documentation/Networking/Conceptual/SystemConfigFrameworks/SC_ReachConnect/chapter_5_section_4.html#//apple_ref/doc/uid/TP40001065-CH204-TPXREF103>
>
> -- Finlay
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden