• 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: Correct way to check for active/available internet connection?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Correct way to check for active/available internet connection?


  • Subject: Re: Correct way to check for active/available internet connection?
  • From: John Joyce <email@hidden>
  • Date: Thu, 24 Jan 2008 22:26:54 -0600

Thanks for the responses.
Looks like there is not (or I've yet to find) a simple convenience method to ask the system if it thinks it's connected. Obviously, it would only really know if it is connected to a network, since the internet is not really a location in its own right.
So the solution is simple, simply attempt to contact the remote server by sending a request (http) and checking the response header/ result.


This makes perfect sense, the more I think about it, as this is exactly what would be done with any standard web app anyway.
All I'm doing is contacting rubyforge anyway.


There are definitely AppleScript alternatives to check the current network connection status, but that would be pointless for me if the network is only local.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

Please 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: Correct way to check for active/available internet connection?
      • From: j o a r <email@hidden>
  • Prev by Date: Re: NSWorkspace choosing to launch app from Time Machine backup
  • Next by Date: Re: Thanks for your help!
  • Previous by thread: Re: Correct way to check for active/available internet connection?
  • Next by thread: Re: Correct way to check for active/available internet connection?
  • Index(es):
    • Date
    • Thread