         
 //        reply = "HTTP/1.1 200 OK\r\nhost-id:bdca08f8-607e-4816-8448-d4f58919109a\r\nhost-type:mac\r\nhost-name:vaux\r\nhost-mtp-protocol-version:01900010\r\nhost-request-port:9309\r\nhost-wireless-protocol-version:01000000\r\nhost-supported-device:PS Vita, PS Vita TV\r\n\0"
         
-        debugPrint(reply)
+//        debugPrint(reply)
         
         let data:Data? = reply.data(
         using:String.Encoding.utf8, allowLossyConversion:false)
+        
+        return data
+    }
+    
+    func replyUnavailable() -> Data?
+    {
+        var reply:String = "HTTP/1.1 503 NG\r\n"
+        reply.append("host-id:4567890123489\r\n")
+        reply.append("host-type:win\r\n")
+        reply.append("host-name:vaux2\r\n")
+        reply.append("host-mtp-protocol-version:01500010\r\n")
+        reply.append("host-request-port:9309\r\n")
+        reply.append("host-wireless-protocol-version:01000000\r\n")
+        reply.append("host-supported-device:PS Vita, PS Vita TV\r\n")
+        reply.append("\0")
+        
+        
+        //        reply = "HTTP/1.1 200 OK\r\nhost-id:bdca08f8-607e-4816-8448-d4f58919109a\r\nhost-type:mac\r\nhost-name:vaux\r\nhost-mtp-protocol-version:01900010\r\nhost-request-port:9309\r\nhost-wireless-protocol-version:01000000\r\nhost-supported-device:PS Vita, PS Vita TV\r\n\0"
+        
+        //        debugPrint(reply)
+        
+        let data:Data? = reply.data(
+            using:String.Encoding.utf8, allowLossyConversion:false)
         
         return data
     }


    func startWireless()
    {
        startServerClient()
    }
    
    func startServerClient()

        {
            print("is initial \(host) \(port)")
            
            let replyData:Data
            
            if sentInitial
            {
                replyData = replyUnavailable()!
            }
            else
            {
//                sentInitial = true
                replyData = reply()!
            }
            
            sock.send(replyData, toAddress:address, withTimeout:1000, tag:1)
        }
        else
        {
            print("not initial")
            fatalError()
        }
    }
    
