     
     
     // Mark: private methods
-    func isClientOnline(tries: Int, every usecInterval: UInt32 = 100000) -> Bool
+    func isClientOnline(tries: Int, onceEvery usecInterval: UInt32 = 100000) -> Bool
     {
         var state: DHProxyClientProxyState = DHProxyStateUnauthorized
         var isOnline = false

    
    
    // Mark: public methods
    public func connect(deviceId: String, devicePort: Int, triesServerChk: Int = 500, triesDeviceChk: Int = 500, triesPortChk: Int = 500, every usecInterval: UInt32 = 100000) -> (isSuccess: Bool, localPort: Int?) {
        if !isClientOnline(tries: triesServerChk, every: usecInterval) {
            return (false, nil)
        }
        delegate?.clientFoundOnline()
        
        if !isDeviceOnline(deviceId: deviceId, tries: triesDeviceChk, every: usecInterval) {
            return (false, nil)
        }
        delegate?.deviceFoundOnline()
        
        return addClientPort(deviceId: deviceId, devicePort: devicePort, tries: triesPortChk, every: usecInterval)
    }
    
    public func disconnect(localPort: Int) -> Bool {

        return isOnline
    }
    
    func addClientPort(deviceId: String, devicePort: Int, tries: Int, onceEvery usecInterval: UInt32 = 100000) -> (isSuccess: Bool, localPort: Int?) {
        var isAcquiredLocalPort = false
        var localPort: Int32 = 0
        var _tries = tries
