clientSocket = GCDAsyncSocket()
clientSocket.delegate = self
clientSocket.delegateQueue = mainQueue
clientSocket.isIPv6Enabled = false
do{
try clientSocket.connect(toHost: "xxx.xx.xxx.xxx", onPort: xxx, withTimeout: -1)
// clientSocket.connect(toAddress: <#T##Data#>, withTimeout: <#T##TimeInterval#>)
}
catch
{
print("error")
}