• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Figuring out if we have an active gateway
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:22:26 -0800

I have #import <SystemConfiguration/SCNetworkReachability.h>
#import <CoreFoundation/CoreFoundation.h>
at the top of the header file...
Paul

----------Original Message----------
  On 1/8/07 1:15 , Finlay Dobbie (email@hidden) wrote:
> You need to link to the SystemConfiguration framework.
>
>  -- Finlay
>
> On 8 Jan 2007, at 01:08, Paul Borokhov wrote:
>
>> 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

  • Follow-Ups:
    • Re: Figuring out if we have an active gateway
      • From: Andrew Farmer <email@hidden>
References: 
 >Figuring out if we have an active gateway (From: Paul Borokhov <email@hidden>)
 >Re: Figuring out if we have an active gateway (From: "Finlay Dobbie" <email@hidden>)

  • Prev by Date: Re: Figuring out if we have an active gateway
  • Next by Date: Re: Cocoa-dev Digest, Vol 4, Issue 15
  • Previous by thread: Re: Figuring out if we have an active gateway
  • Next by thread: Re: Figuring out if we have an active gateway
  • Index(es):
    • Date
    • Thread