PDA

View Full Version : Sockets over wifi




titaniumdecoy
Sep 22, 2008, 08:45 PM
I am writing an iPhone app that connects to a server using a basic UNIX socket. If the connection is broken because the user goes out of wifi range or some other reason, do I need to check for that and reconnect, or will the connection be reestablished by the OS when the user is back in range?



ghayenga
Sep 22, 2008, 10:00 PM
I am writing an iPhone app that connects to a server using a basic UNIX socket. If the connection is broken because the user goes out of wifi range or some other reason, do I need to check for that and reconnect, or will the connection be reestablished by the OS when the user is back in range?

You'll need to check for that and reconnect.