• 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: Checking for internet connection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Checking for internet connection?


  • Subject: Re: Checking for internet connection?
  • From: Ben Dougall <email@hidden>
  • Date: Sat, 14 Oct 2006 19:55:15 +0100


On Saturday, October 14, 2006, at 07:44 pm, j o a r wrote:


On 14 okt 2006, at 13.56, Ben Dougall wrote:

The two functions on that page, SCNetworkCheckReachabilityByAddress and SCNetworkCheckReachabilityByName (regarding pre 10.3), checks the availability of another external host. That's really the best way to see if the computer has a connection? Check to see if say Amazon are contactable and from that assume that the machine you're on has a connection? That's really crap I reckon. Surely there's a reasonable way to find out if the machine is currently connected to the net or not (OS X 10.2+)?

How do you think it could work otherwise? What does "connected to the internet" mean to you?


Sure, your computer can detect that it is connected to an IP network without having to ping some host on the Internet, but that's probably not what you're looking for.

Yes it is -- that's what I'm after (if "IP network" means the internet). I want the same info as the Internet Connect app has -- it displays "connected" or "disconnected". I'm also after the same info that the Internet Connect app makes available via AppleScript (specifically time connected and speed) without having to use AppleScript and open the Internet Connect app if possible?


Thanks, Ben.

_______________________________________________
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: Checking for internet connection?
      • From: j o a r <email@hidden>
References: 
 >Re: Checking for internet connection? (From: j o a r <email@hidden>)

  • Prev by Date: Core Data: undo and non-object attribute
  • Next by Date: Re: Checking for internet connection?
  • Previous by thread: Re: Checking for internet connection?
  • Next by thread: Re: Checking for internet connection?
  • Index(es):
    • Date
    • Thread