TFTPServer Last Updated: 01/27/2007 |
Frequently Asked Questions for TFTPServer:
What is it?
Francois Piette francois.piette@overbyte.be 21.09.1998 |
TFTPServer class encapsulate the FTP protocol (server side).See RFC-959 for a complete protocol description.
|
Does FTPCli/FTPSrv pair support \\machine\\directory syntax?
Francois Piette francois.piette@overbyte.be 23.09.1998 |
Yes, they do.
|
Extend command set
Eric Pascual eric.pascual@analis.fr 28/04/2001 |
There are several possibilities to extend the command set:
1) modifying FtpSrv : this must be done (in my opinion) to add currently unsupported FTP commands (I did this to add the STOU command) and then to propose your extension to François 2) use the SITE command, which (as said in FTP specs) is aimed at providing commands specific to your site (like the name suggests). Just add your commands as sub-commands like this: SITE MYCOMMAND parm1 parm2... You can handle it in the OnClientCommand (I'm not sure of the exact wording of the event) event handler of the TFtpSrv component 3) With a similar approach, you can add plain commands to the FTP set, instead of defining them as SITE subcommands. Personnaly, I don't like very much this way, since it breaks the overall philosophy of the protocol definition. But for internal use only, this does not hurt a lot. For a project based on a FTP server, but managing data that are not files (I've read somewhere that this is called a "virtual file system".... geee, it sounds nice :-), I've developed a general architecture in which commands are handled by command processors, registered in a core engine, responsible of the dispatching. This way, all I need to do to handle a new command is to create a sub-class of the command processor abstract one, puting in it all the things I must do for this command and register it into the global engine. Command processors apply as well for standard FTP commands that need to be processed differently than the default way, as for specific commands extending the standard set. |
Hiding parent directories of Home Dir on FTP Server
Software Matters Davie@smatters.com 21/04/2003 |
Myabe you can have the home dir a differernt drive letter, that way they cant traverse upwards any at all. Of course if you needed more than 15 or 20 home dirs, then you would run into drive letters becoming used up :) But if you only need a few, then do it that way. See, you can actually assign a drive letter to a specific folder and then when you access that drive letter, you are actually looking at that particular folder. THink in terms of the olden DOS days of the SUBST command.
|
Home dir
Wilfried Mestdagh wilfried@mestdagh.biz 06/03/2001 |
> Does every client has his own home dir
Set Client.HomeDir in the OnAutenticate event |