Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 08-04-2003, 07:46 PM   #1
builder
Junior Member
 
Join Date: Aug 2003
Posts: 3
Lightbulb Two questions

Hello people,

1 - Im trying get the numbers of connected users at iTCL script.
(eg: SITE USERCOUT - return number of connected users)

2 - Im trying get user info about some user connected (username and group).
(eg: SITE ONLINEUSERS - return builder,dummyuser for example)

I know about uinfo.msg (but this is cookie, not variables to get from iTCL script).

Any kind of help are welcome.
Thanks in advance.

builder is offline  
Old 08-08-2003, 10:54 PM   #2
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

u can't.
Only way to get those info is through shared memory (C).
Mouton is offline  
Old 08-09-2003, 12:03 PM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Actually you can use cookies for that %../scripts/myscript.itcl %[service(FTP_SERVICE)(USERSONLINE)] .. or whatever that cookie was but there is no way of getting list of users online tho
darkone is offline  
Old 08-09-2003, 10:03 PM   #4
builder
Junior Member
 
Join Date: Aug 2003
Posts: 3
Default

Im writing a little guy to make control of connected users at ioFTPD.

Maybe some useful events or variables can be added:

(OnUserLogin)
(OnUserLogout)

%OnlineUserList - returns user1,user2,user3

I need a way to keep track about connected users.

If the user dont issue the 'QUIT' command for example, that event (onUserLogout) will not be triggered, maybe the creation of event 'OnUserDisconnect' can solve the problem.

(this is the reason of custom commands, my application will execute these commands periodically and update the display).

Well, any kind of help are welcome.

Thanks.

builder is offline  
Old 08-10-2003, 07:30 AM   #5
b>d>>s
Senior Member
 
Join Date: Feb 2003
Posts: 488
Default

well just build a list with itcl onlogin then delete from list onlogout
b>d>>s is offline  
Old 08-10-2003, 10:39 AM   #6
builder
Junior Member
 
Join Date: Aug 2003
Posts: 3
Default

Seems ioFTPD only have onFTPLogin event... AFAIK.
builder is offline  
Old 08-10-2003, 11:00 AM   #7
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

I really suggest doing it in C... Would be MUCH easier and MUCH cleaner than all that hacks you would have to do in itcl...
Mouton is offline  
Closed Thread

Tags
connected, itcl, return, user, users

Thread Tools
Display Modes 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

Forum Jump


All times are GMT -5. The time now is 05:33 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)