Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > ioFTPD beta > Suggestions

Suggestions Got a new idea or addition which would benefit IOFTPD? Post it here!

Reply
 
Thread Tools Rate Thread
Old 05-08-2003, 11:25 AM   #1
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 535
Lightbulb stats source code

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
bounty is offline   Reply With Quote
Old 05-08-2003, 11:44 AM   #2
Member
 
Join Date: Nov 2002
Posts: 39
Default

yea yea that would be very nice
ProlyX is offline   Reply With Quote
Old 05-08-2003, 12:50 PM   #3
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

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 is offline   Reply With Quote
Old 05-08-2003, 12:52 PM   #4
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

I might be able to write something simplified.. though, WarC already has his own APIs that could be used to create something similar.
darkone is offline   Reply With Quote
Old 05-08-2003, 04:32 PM   #5
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 558
Default

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..
FTPServerTools is offline   Reply With Quote
Old 05-08-2003, 05:09 PM   #6
Senior Member
ioFTPD Scripter
 
Join Date: Aug 2002
Posts: 535
Talking

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
bounty is offline   Reply With Quote
Old 05-09-2003, 03:52 AM   #7
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 558
Default

Oki will do but I have a few other io thingies to make also so you'll have to wait....
FTPServerTools is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
New Cookies darkone Suggestions 6 01-22-2003 08:06 AM


All times are GMT -5. The time now is 08:03 PM.