Go Back   FlashFXP Forums > Community Chatter > Programming

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

Closed Thread
 
Thread Tools Rate Thread
Old 08-04-2003, 07:46 PM   #1
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
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
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
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
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
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
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
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
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 2,022
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
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



All times are GMT -5. The time now is 11:48 AM.