Re: Detecting a network connection
Re: Detecting a network connection
- Subject: Re: Detecting a network connection
- From: colors <email@hidden>
- Date: Thu, 29 Oct 2009 18:35:22 -0700
One challenge I am facing is that there are cases where the product I
am working on is run within a network that does not have extranet
access, but need to access a server inside the network. I do not know
what the domain or address is for this server, since it is different
for each installation.
So before I try to communicate with the server, I would like to know
that I can actually get off the machine to some kind of network. This
will help avoid having to wait for curl to timeout. It looks like
NSHost and SCNetwork... depend on having a specific address or
domain. How can I just determine if there is a physical connection to
a network?
Rich
On Oct 28, 2009, at 7:32 AM, colors wrote:
I am currently use NSHost to determine if I can see a particular
domain, before I initiate a lengthly sso to that domain. However, I
am finding that depending on the settings of some network DNS
servers, this method does not always work. Any suggestions of a
better way to confirm a live internet connection?
*********************************************
Richard Collyer
email@hidden
*********************************************
_______________________________________________
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