Tcp connection test. Use GCDAsyncSocket framework.