Re: Correct way to check for active/available internet connection?
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