"becomes unavailable" has the following scenarios for us -
There is a TCP connection in place and the iPhone[TCP client] goes out of range and therefore the connection is lost to the server.
In this instance, we need to reestablish the connection when the iPhone is back in range.
The iPhone does not need to send any request to the server but needs to continuosly receive data (eg: every sec) from the server for live telemetry.
There is a TCP connection in place and the server disappears off the network - eg: out of range or turns its power off.
Does 'nw_connection_t' have a 'state' property that can be checked on a timely basis to identify the state of the connection?
We have also been using - CFStreamCreatePairWithSocketToHost, CFReadStreamRef, CFWriteStreamRef in our existing application.
Will this continue to be supported in future or are there chances of this becoming redundant as well?
Point being, that if 'nw_connection_t' does not serve our purpose, then do we have a potential long term solution in using CFStreamCreatePairWithSocketToHost instead of our current GCDAsyncSocket?