Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 09-23-2009, 01:56 AM   #1
SysOp
Junior Member
 
Join Date: May 2009
Posts: 12
Default How to get the ClientType of the specified cid?

In iTCL, I know that we can get the clienttype of the current connection by using [user ClientType] command. But is it possible to get the ClientType of the specified cid, OR even better, a list of ClientTypes? If it is, how?

Thanks in advance.
SysOp is offline   Reply With Quote
Old 09-23-2009, 04:04 AM   #2
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Hmm, there is currently no way to get the client type of any connection other than your own. However, you could add a post-event to the CLNT command and stash the string and CID into an ioTCL variable (a string representation of an array is what I'd use). Don't forget a a user logoff event to clear the entry.
Yil is offline   Reply With Quote
Old 09-23-2009, 04:07 AM   #3
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Client types are just whatever the FTP client chooses to pass with the CLNT command. Thus there is no list of possible values and no attempt to make sense of the string by the server itself however scripts are free to do so.
Yil is offline   Reply With Quote
Old 09-23-2009, 05:10 AM   #4
SysOp
Junior Member
 
Join Date: May 2009
Posts: 12
Default

I see. Thank you very much, Yil.
So, if I do not need the original IDENT variable, I can stash that CLNT string to replace it. And thus there is no need to clear it. Is it true?
SysOp is offline   Reply With Quote
Old 09-23-2009, 11:04 AM   #5
Yil
Too much time...
FlashFXP Beta Tester
ioFTPD Administrator
 
Join Date: May 2005
Posts: 1,194
Default

Hmm, you lost me there. The ident response is part of the hostmask and totally different than the optional CLNT command which simply serves as a hint to the server which FTP client the user is using in case it wishes to disable/enable certain features.
Yil is offline   Reply With Quote
Old 09-23-2009, 08:50 PM   #6
SysOp
Junior Member
 
Join Date: May 2009
Posts: 12
Default

Sorry, but now I understood. Thank you for your patience.
SysOp is offline   Reply With Quote
Reply

Tags
advance, cid, clienttype, clienttypes, list


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 11:19 AM.

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