I\'ve been fighting with NWConnection to receive data on a long-running TCP socket all day. I\'ve finally got it working after inflicting the following errors on myself due
I think you can use a short time connection many times. For example a client connects to the host and asks the host to do something and then tells the host to shutdown the connection. The host switches to the waiting mode to ready a new connection. See the diagram below.