Re: [twsocket] Improving TFtpServer

2005-12-06 Thread Teträm Corp
Angus Robertson - Magenta Systems Ltd a écrit : >>those are not FTP commands, but some Application specific commands. >>In fact, I'm making a service based on a FTP server. For example, >>commands are RESTART, RELOAD, and other more specific to my >>application. >> >> > >Rather than adding

Re: [twsocket] Improving TFtpServer

2005-12-06 Thread Angus Robertson - Magenta Systems Ltd
> those are not FTP commands, but some Application specific commands. > In fact, I'm making a service based on a FTP server. For example, > commands are RESTART, RELOAD, and other more specific to my > application. Rather than adding private commands to the FTP server, I think it would be much

Re: [twsocket] Improving TFtpServer

2005-12-05 Thread Teträm Corp
>Except that using TList complicates the code unnecessarily since the >memory needs to be freed at some point, and it will lead to more changes >in the source code, that need to be properly tested, all so we can >continue to support compilers obsoleted six years ago. > > The changes needed s

Re: [twsocket] Improving TFtpServer

2005-12-05 Thread Angus Robertson - Magenta Systems Ltd
> I very much prefer using a TList. That avoid any conditional compile. Except that using TList complicates the code unnecessarily since the memory needs to be freed at some point, and it will lead to more changes in the source code, that need to be properly tested, all so we can continue to su

Re: [twsocket] Improving TFtpServer

2005-12-05 Thread Francois Piette
> > - why 5? while it seems there're only two new commands for SSL (AUTH > > and PROT) which are not added to the FCmdTable with AddCommand > > (at least in TFtpServer) > > Can not recall exactly why I added that comment, except without adding > five the array was too much. It could be the com

Re: [twsocket] Improving TFtpServer

2005-12-05 Thread Teträm Corp
>It is because of SSL, there are more commands. > > how are they added to the FCmdTable? using AddCommand or with direct access to FCmdTable? (I do not have the SSL source code) >>- why 5? while it seems there're only two new commands for SSL (AUTH >>and PROT) which are not added to the F

Re: [twsocket] Improving TFtpServer

2005-12-05 Thread Angus Robertson - Magenta Systems Ltd
> - why two declarations? (may be for SSL but it seems not) It is because of SSL, there are more commands. > - why 5? while it seems there're only two new commands for SSL (AUTH > and PROT) which are not added to the FCmdTable with AddCommand > (at least in TFtpServer) Can not recall exact