| View previous topic :: View next topic |
| Author |
Message |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Jul 31, 2006 12:00 pm Post subject: Limit the number of concurrent users on a network |
|
|
I am doing this program for a client. It is almost finished, but now the client wants a network-based version of the program.
This version should be able to limit the number of concurrent users so that a 5-user version allows max 5 users on the network to be running the program at the same time.
Does anybody have any experience on this or just some sound idea about how to do it?
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1566
|
Posted: Mon Jul 31, 2006 3:06 pm Post subject: |
|
|
You could use vdsipp and have it setup a local server, and have all client computers on the network checkin. A basic udp or tcp client/server will work in this case. In fact you can check the udp examples with VDSIPP as it shows how many clients are connected to the server.
The client could login to the server, if the server notices more than 5 users it sends back text 'DENIED' or whatever text you want basically telling the client program to shutdown.
Using the vdsipp you can make the program work on a local network and you can later make the program work over the internet. Have the clients connect to the local ip for a local network or supply the internet ip to work over the internet  |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
Posted: Tue Aug 01, 2006 7:31 am Post subject: |
|
|
And if you don't have a Windows server available online 24/7, you could also create a webpage with PHP or ASP which does about the same. Let your program contact the PHP or ASP page every two minutes and let that script store how many people are online. If too many people are online, just send back a text like 'DENIED'.  _________________ [ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial! |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Thu Aug 03, 2006 7:19 am Post subject: |
|
|
Thanks. That has provided a couple of ideas as a starting point....
Greetz
Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
|