• 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: Network Reachability APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Network Reachability APIs


  • Subject: Re: Network Reachability APIs
  • From: Alex Kac <email@hidden>
  • Date: Wed, 20 May 2009 15:32:02 -0500

We have an app with a UISwitch that we show/hide depending on if there is a WiFi network available or not. Since its a simple delegate call, it makes it easy.

On May 20, 2009, at 2:55 PM, Eric Hermanson wrote:

On the iPhone, what's the point of the network Reachability APIs, when one can simply open a network socket (or input/output stream) and observe the EOF notices from the socket to determine network availability & reachability? In other words, if a network connection has to be made in the first place, why not just attempt the network connection via the socket/stream and see if that is successful, and then also watch for EOF (-1) return values from the stream to determine when the network is down?

- Eric


_______________________________________________

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

Alex Kac - President and Founder Web Information Solutions, Inc.

"It is useless for sheep to pass a resolution in favor of vegetarianism while wolves remain of a different opinion."
-- William Randolph Inge






_______________________________________________

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


References: 
 >Network Reachability APIs (From: Eric Hermanson <email@hidden>)

  • Prev by Date: Re: Sensible way to extend base class?
  • Next by Date: Re: Sensible way to extend base class?
  • Previous by thread: Re: Network Reachability APIs
  • Next by thread: Re: Network Reachability APIs
  • Index(es):
    • Date
    • Thread