thinking in Monthly Bandwidth Allowance

Richard Huang endeavorhh0 at yahoo.com
Thu Feb 14 09:16:00 UTC 2008


hi,Master

I 
want 
control 
the 
"Monthly 
Bandwidth 
Allowance" 
in 
INN,for 
example 
one 
people 
only 
have 
2G 
per 
month. Below is my solution:

Jeffrey M. Vinocur told me news.notice log record the size of user download(thanks very much Jeffrey). I find nnrpd.c write that log
" 
if (ARTget)
        syslog(L_NOTICE, "%s artstats get %ld time %ld size %ld", ClientHost,
            ARTget, ARTgettime, ARTgetsize);

"
So,my solution is use mysql record Bandwidth--add mysql operate function in nnrpd.c. Save ARTgetsize+latest download size to mysql.

Any suggestion?

thanks!





      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



More information about the inn-workers mailing list