         
         return true
     }
-    
-    /**
-    CONNECT * 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 **/
 }
 
 class MConnectDelegateClient:NSObject, GCDAsyncUdpSocketDelegate
 {
+    func sendInitial(socket:GCDAsyncUdpSocket?)
+    {
+        let data:Data = reply()!
+        
+        socket?.send(
+            data,
+            toHost:"192.168.0.11",
+            port:9309,
+            withTimeout:100,
+            tag:123)
+    }
+    
     func udpSocket(_ sock: GCDAsyncUdpSocket, didNotConnect error: Error?) {
         print("did not connect")
     }

            
            guard
                
                let replyData:Data = emptyReply()
            
            else
            {

        let port:UInt16 = GCDAsyncUdpSocket.port(fromAddress:address)
        
        print(receivingString)
    }
    
    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"
        
        print(reply)
        
