     public func getMyPeerID() -> MCPeerID {
         return myPeerId
     }
+    
     // Debug mode
     private func DLog(message: String, _ function: String) {
         if debugMode {

    public func startAdvertisingHost() {
        stopSearchingForHosts()
        self.host = myPeerId
        if self.serviceAdvertiser == nil {
            serviceAdvertiser = MCNearbyServiceAdvertiser(peer: myPeerId,
                                                          discoveryInfo: ["peerType": "host"], serviceType: serviceType)
//            self.serviceAdvertiser?.delegate = self
        }
        self.serviceAdvertiser?.delegate = self
        self.serviceAdvertiser?.startAdvertisingPeer()
    }
    

            return
        }
        
        DLog("%@", "connect to host: \(host)")
        serviceBrowser?.invitePeer(host, toSession: session, withContext: context, timeout: timeout)
        
