PHP Classes

CTokenBucket: Token bucket filter for a variety of purposes

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2003-05-09 (11 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 620 This week: 1All time: 4,698 This week: 1,291Up
Version License Categories  
tokenbucket 1.0Public DomainAlgorithms
Description Author  

This class implements a token bucket filter. Token bucket filters are used in software engineering to limit a number of events within a certain time.

An example is how ISP's limit bandwidth to a fixed Kilobyte per second rate.

A typical usage of this class is limiting the amount of posts to, for example, a guestbook or forum for a user of your site.

An example is included in the source file. Call as: http://yourdomain/../tokenbucket.php/demo

Picture of Rene Kluwen
Name: Rene Kluwen <contact>
Classes: 6 packages by
Country: The Netherlands The Netherlands
Age: 44
All time rank: 772 in The Netherlands The Netherlands
Week rank: 81 Down4 in The Netherlands The Netherlands Down

  Files folder image Files  
File Role Description
Accessible without login Plain text file license.txt Lic. License
Plain text file tokenbucket.php Class Class file

 Version Control Unique User Downloads Download Rankings  
 0%Total:620All time:4,698
 This week:1This week:1,291Up