Re: detecting an active Internet connection
Re: detecting an active Internet connection
- Subject: Re: detecting an active Internet connection
- From: Phil <email@hidden>
- Date: Tue, 26 Oct 2004 20:53:20 +1300
On Mon, 25 Oct 2004 23:54:27 -0600, Donald Hall <email@hidden> wrote:
>
Looking back in the archives of this list, I have found several schemes using
>
>
SCNetworkCheckReachabilityByName()
>
>
to attempt to determine if the Internet was reachable without
>
actually triggering a connection attempt.
>
>
It seems to me that using "ping" through an NSTask would also work. When I try
>
>
ping -c1 www.apple.com
I would consider using SCNetworkCheckReachabilityXXX() a much more
'reliable' (wrong word, but something goes there) method than
hard-coding in a ping command and parsing the output.
Is there anything that is stopping you from using SCNetWorkCheck...?
-Phil
_______________________________________________
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