 //            print("problem binding: \(error.localizedDescription)")
 //        }
         
-//        do
-//        {
-//            try socket?.beginReceiving()
-//        }
-//        catch let error
-//        {
-//            print("problem begin: \(error.localizedDescription)")
-//        }
+        
         
         do
         {

    
    func reply() -> Data?
    {
        let reply:String = "SRCH3 * HTTP/1.1\r\ndevice-id:681401e7aed501010101010101010101\r\ndevice-type:PS Vita\r\ndevice-class:0\r\ndevice-mac-address:681401e7aed5\r\ndevice-wireless-protocol-version:01000000\r\n"
        
        debugPrint(reply)
        
        let data:Data? = reply.data(
            using:String.Encoding.utf8, allowLossyConversion:false)

        else
        {
            delegateClient?.sendInitial(socket:socket)
            
            do
            {
                try socket?.beginReceiving()
            }
            catch let error
            {
                print("problem begin: \(error.localizedDescription)")
            }
            
            return
        }
