基于许可证为C ++应用程序管理功能 [英] Managing features on a license basis for a C++ application

查看:174
本文介绍了基于许可证为C ++应用程序管理功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试为我们的Linux应用程序正在运行的每个功能提供许可证机制,我们正在考虑使用许可证服务器以集中方式控制它:



我们的许可目的是:


  1. 运营商尚未购买的拒绝功能。


  2. 在一段时间内启用功能,并使其只在一段时间内可用。

有没有允许我们这样做的服务器许可证(基本上,我们将使用套接字与我们的应用程序通信)?

解决方案

如果我们能够使用某些开源软件您真的想使用许可证服务器,然后确保您的应用程序不必一直联系它授权使用 - 这将导致没有结束的问题,当人们失去互联网连接或您的服务器停机或崩溃。 / p>

我建议在本地下载和存储密钥,从而减少到服务器的往返次数。



我们使用了 HASP 硬件钥匙在过去,当他们无限工作,并提供一个解决方案,我不认为他们是你想要,因为他们被编程一次这就是。例如,您将无法更新HASP密钥以关闭试用期。


We are trying to offer a license mechanism for every feature our Linux application is running, and we are thinking of controlling it in a centralized way using a license server:

Our aim for licensing is:

  1. Deny features the operator has not bought.
  2. Offer trials (features which expire if they are not bought).
  3. Activate features for periods of time, and make them available just for some period of time.

Is there any server license which allow us to do this (basically, we would use sockets to communicate with our application)? What else can we do (for example, use some open source software, read, etc.) to get started?

解决方案

If you really want to use a license server then make sure that your application does not have to contact it all the time to authorise use - this will lead to no end of problems when people lose their Internet connection or your server goes down or crashes.

I would suggest having something where a key is downloaded and stored locally, thus reducing round trips to the server all the time. The key can be encrypted based on the user's machine details so that keys cannot be shared.

We've used the HASP hardware key in the past and while they defnitely work and provide a solution, I don't think they are what you want as they are programmed once and that's that. For example, you wouldn't be able to update the HASP key to close a trial period.

这篇关于基于许可证为C ++应用程序管理功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆