How to add license key to a TurboFloat app?

Hello There,

I need help with turbofloat licensing concept.

Scenario:I have been using the example.sln file to test the floating licensing via turbofloat. I install the turbofloat service (with TurboActivate.dat file and TurboFloatServer-config.xml in the same directory), modified the guid in my Example.c fileand then ran the executable to know that i was getting the return value for TF_RequestLease() as S_OK, meaning everything is working fine.

Issue:I have created a turbofloat license key for my product on the website. How shall i use this license key in my turbofloat app ? How come the requestLease returns returns as S_OK even when I have never provided the key to the app?

Any help would be invaluable!!

Thanks.

The TurboFloat Server accepts the product key, and that's what's activated. Your app, using the TurboFloat library, can connect to (an request leases from) any TurboFloat Server instance that is activated using a product key from your product version.

Does that make sense?

Hi Wyatt,

Got it. Thanks for the help.

So if i create number of floating licenses to be 10 then 10 different nodes could be working with my app at the same time right? And will the local server which is activated via key know the max leases it can hand out ? Or, do we have to manage it in the code?

Regards,Srinivas

So if i create number of floating licenses to be 10 then 10 different nodes could be working with my app at the same time right?

Correct.

And will the local server which is activated via key know the max leases it can hand out ?

Yes, the TurboFloat Server knows when to stop handing out leases. It manages all of that. You just have to call TF_GetLease(), and if it fails you'll know what type of failure based on the error code it returns (for example, no more free leases).

Thanks a lot Wyatt. This will help.