 {
     let udpDelegate:MConnect2UDPDelegate
     let udpSocket:GCDAsyncUdpSocket
+    let tcpDelegate:MConnect2TCPDelegate
+    let tcpSocket:GCDAsyncSocket
     let requestPort:UInt16 = 9309
     
     init()
     {
         udpDelegate = MConnect2UDPDelegate()
+        tcpDelegate = MConnect2TCPDelegate()
         
         udpSocket = GCDAsyncUdpSocket(
             delegate:udpDelegate,
             delegateQueue:DispatchQueue.global(qos:DispatchQoS.QoSClass.background),
             socketQueue:DispatchQueue.global(qos:DispatchQoS.QoSClass.background))
         
+        tcpSocket = GCDAsyncSocket(
+            delegate:tcpDelegate, delegateQueue:DispatchQueue.global(qos:DispatchQoS.QoSClass.background), socketQueue: DispatchQueue.global(qos:DispatchQoS.QoSClass.background))
+        
         udpSocket.setIPv6Enabled(false)
         udpSocket.setPreferIPv4()
         

        return true
    }
}

        }
        catch
        {
        }
        
        do
        {
            try tcpSocket.accept(onPort:requestPort)
        }
        catch let error
        {
            print("error accept on port: \(error.localizedDescription)")
        }
    }
}
