View Full Version : stats source code
bounty
05-08-2003, 11:25 AM
hi darkone
it would be really cool if you can share also the source code for stats
like that we can have an external stats exe to use with dzsbot ;)
big thx & have fun
bounty
ProlyX
05-08-2003, 11:44 AM
yea yea that would be very nice
darkone
05-08-2003, 12:50 PM
Stats function that ioftpd has, relies on several APIs. Stats function is something as simple as:
if (! FindFirstUser(Search, &UserFile, &Buffer))
{
do
{
// binary search like algorith that inserts user into array (something i call, quick insert)
// remove last item from array, if size == max_size
} while (! FindNextUser(&UserFile, &Buffer));
}
for (i=0;i<arraysize;i++)
{
MessageFile_ShowCached(Cache, UserFileArray[i], DT_USERFILE);
}
=> To make sense of it, you would need ~10k lines of sources.
darkone
05-08-2003, 12:52 PM
I might be able to write something simplified.. though, WarC already has his own APIs that could be used to create something similar.
FTPServerTools
05-08-2003, 04:32 PM
Eeh isnt it already revealed in Message.h from sitewho.cpp?? I mean the MAX_SECTIONs is all there... It should be simple enough to write something..
bounty
05-08-2003, 05:09 PM
nice ... but it's chinese for me ;)
so i hope some c++ coders will write a little exe for us now ;)
very big thx
bounty
FTPServerTools
05-09-2003, 03:52 AM
Oki will do but I have a few other io thingies to make also so you'll have to wait....
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2024, vBulletin Solutions, Inc.