i wrote a simple script in php which handles the users and their access to the content. the last thing i want to do is to write a module to dynamically limit the download speed and maximum number of connections for each group of users when they attempt to access the files on server. something like this:
Usergroup0: [max conn num: 2] [max connection speed: 256kb/sec]
Usergroup1: [max conn num: 4] [max connection speed: 1mbit/sec]
Usergroup2: [max conn num: 8] [max connection speed: 1mbit/sec]
right now i have no clue how it's done.. i want to know what technique (or module) is it so i can look it up. any hint or guidance would be great.