Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > How to protect/license a static library? Multiple instances?

Reply
Thread Tools

How to protect/license a static library? Multiple instances?

 
 
johnfofawn@hotmail.com
Guest
Posts: n/a
 
      08-16-2005
Hi,

I am deliverying an algorithm to a customer as a static library. I know
how to put a time limit (make the library functions only run for 60
days, for example), or lock the library to a MAC address.

However, what I need, in this case, is to limit the number of instances
of the library that can run on the computer. The algorithm processes
data and I charge my customer based on the number of instances of my
algorithm that they run.

Does any one know of a very simple way to do this? I want to be
absolutely sure that I don't cause my customer unnecessary difficulty.

Thanks,
John

 
Reply With Quote
 
 
 
 
Alexei A. Frounze
Guest
Posts: n/a
 
      08-16-2005
<> wrote in message
news: ups.com...
....
> However, what I need, in this case, is to limit the number of instances
> of the library that can run on the computer. The algorithm processes
> data and I charge my customer based on the number of instances of my
> algorithm that they run.


Wrong group. But generally you need to guard access to the library by means
of a mutex/lock/semaphore/whatever is supported by the OS.

Alex


 
Reply With Quote
 
 
 
 
Gordon Burditt
Guest
Posts: n/a
 
      08-16-2005
>I am deliverying an algorithm to a customer as a static library. I know
>how to put a time limit (make the library functions only run for 60
>days, for example), or lock the library to a MAC address.


You really like to **** off customers, don't you? In my experience,
network card failures are not that uncommon (because we use a lot
of them).

>However, what I need, in this case, is to limit the number of instances
>of the library that can run on the computer. The algorithm processes
>data and I charge my customer based on the number of instances of my
>algorithm that they run.
>
>Does any one know of a very simple way to do this? I want to be
>absolutely sure that I don't cause my customer unnecessary difficulty.


All of the things you mention above WILL eventually cause your
customer unnecessary difficulty. If you don't want to sell it,
don't sell it. You may do the world a favor by not writing such
crippled software in the first place.

Gordon L. Burditt
 
Reply With Quote
 
Alexei A. Frounze
Guest
Posts: n/a
 
      08-16-2005
"Gordon Burditt" <> wrote in message
news:...
> >I am deliverying an algorithm to a customer as a static library. I know
> >how to put a time limit (make the library functions only run for 60
> >days, for example), or lock the library to a MAC address.

>
> You really like to **** off customers, don't you? In my experience,
> network card failures are not that uncommon (because we use a lot
> of them).


Seems like licensing becomes more important than the quality of the code in
question.

Alex



 
Reply With Quote
 
akarl
Guest
Posts: n/a
 
      08-16-2005
wrote:
> Hi,
>
> I am deliverying an algorithm to a customer as a static library. I know
> how to put a time limit (make the library functions only run for 60
> days, for example), or lock the library to a MAC address.
>
> However, what I need, in this case, is to limit the number of instances
> of the library that can run on the computer. The algorithm processes
> data and I charge my customer based on the number of instances of my
> algorithm that they run.
>
> Does any one know of a very simple way to do this?


Yes, but you are only allowed to look at my solution for 3 seconds...
....sorry, time's up.
 
Reply With Quote
 
Emmanuel Delahaye
Guest
Posts: n/a
 
      08-16-2005
akarl wrote on 16/08/05 :
> Yes, but you are only allowed to look at my solution for 3 seconds...
> ...sorry, time's up.


LOL !!!

--
Emmanuel
The C-FAQ: http://www.eskimo.com/~scs/C-faq/faq.html
The C-library: http://www.dinkumware.com/refxc.html

..sig under repair


 
Reply With Quote
 
Mark McIntyre
Guest
Posts: n/a
 
      08-16-2005
On 16 Aug 2005 11:22:50 -0700, in comp.lang.c ,
wrote:

(of distributing software with a runtime license allowing X concurrent
users)

>Does any one know of a very simple way to do this?


Yes, but you need to buy a license for the required s/w. Seriously,
there are plenty of solutions out there, but you'll need to buy them.

--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.ungerhu.com/jxh/clc.welcome.txt>

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
 
Reply With Quote
 
Daniele Benegiamo
Guest
Posts: n/a
 
      08-17-2005
wrote:
> Hi,
>
> However, what I need, in this case, is to limit the number of instances
> of the library that can run on the computer. The algorithm processes
> data and I charge my customer based on the number of instances of my
> algorithm that they run.
>
> Does any one know of a very simple way to do this? I want to be
> absolutely sure that I don't cause my customer unnecessary difficulty.


Some hardware dongles supports this feature.

Daniele.
 
Reply With Quote
 
johnfofawn@hotmail.com
Guest
Posts: n/a
 
      08-17-2005
Great. Can you suggest a few you've had good experience with?

John

 
Reply With Quote
 
johnfofawn@hotmail.com
Guest
Posts: n/a
 
      08-17-2005
Alex,

Thanks for your reply. How do I get a common handle to the
mutex/lock/semaphore/whatever across all the running instances?

Thanks,
John

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
"Non-static aggregate with multiple choices has non-static otherschoice." rickman VHDL 5 03-30-2013 11:06 PM
PIX public/24 ip static mapping means 256 times interfaces static maps? Nieuws Xs4all Cisco 2 05-26-2005 06:25 PM
PIX public/24 ip static mapping means 256 times interfaces static maps? Nieuws Xs4all Cisco 0 05-26-2005 11:07 AM
Static vs. non-static connection Natan ASP .Net 8 05-26-2004 08:21 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57