Re: Detecting a network connection

2009-10-29 Thread Jens Alfke
On Oct 29, 2009, at 6:35 PM, colors wrote: 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

Re: Detecting a network connection

2009-10-29 Thread Shawn Erickson
On Thu, Oct 29, 2009 at 6:35 PM, colors wrote: > 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 t

Re: Detecting a network connection

2009-10-29 Thread colors
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 instal

Re: Detecting a network connection

2009-10-28 Thread Jens Alfke
On Oct 28, 2009, at 9:22 AM, colors wrote: Is there an API for determining a physical network connection (ethernet, WiFi, etc.)? Again, SystemConfiguration has APIs for that. But unless you're doing something unusual, you probably don't need to check for physical network interfaces. An a

Re: Detecting a network connection

2009-10-28 Thread colors
Is there an API for determining a physical network connection (ethernet, WiFi, etc.)? On Oct 28, 2009, at 7:37 AM, Dave Carrigan wrote: 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 t

Re: Detecting a network connection

2009-10-28 Thread colors
That looks perfect, thank you. Rich On Oct 28, 2009, at 7:37 AM, Dave Carrigan wrote: 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

Re: Detecting a network connection

2009-10-28 Thread Dave Carrigan
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 sug

Detecting a network connection

2009-10-28 Thread colors
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 i