• 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: detecting an active Internet connection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: detecting an active Internet connection


  • Subject: Re: detecting an active Internet connection
  • From: Phil <email@hidden>
  • Date: Tue, 26 Oct 2004 20:53:20 +1300

On Mon, 25 Oct 2004 23:54:27 -0600, Donald Hall <email@hidden> wrote:
> Looking back in the archives of this list, I have found several schemes using
>
> SCNetworkCheckReachabilityByName()
>
> to attempt to determine if the Internet was reachable without
> actually triggering a connection attempt.
>
> It seems to me that using "ping" through an NSTask would also work. When I try
>
> ping -c1 www.apple.com

I would consider using SCNetworkCheckReachabilityXXX() a much more
'reliable' (wrong word, but something goes there) method than
hard-coding in a ping command and parsing the output.

Is there anything that is stopping you from using SCNetWorkCheck...?

-Phil
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: detecting an active Internet connection
      • From: Donald Hall <email@hidden>
  • Prev by Date: Re: Dealing with Resource Forks
  • Next by Date: IBPalette Question
  • Previous by thread: Re: detecting an active Internet connection
  • Next by thread: Re: detecting an active Internet connection
  • Index(es):
    • Date
    • Thread