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?