Re: [twsocket] New release: minor bug fix, new sample

2005-04-16 Thread Francois PIETTE
OK, I have applyed it to my source. Will be visible next upload. -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: "Maurizio Lotauro" <[EMAIL PROTECTED]> To: "ICS support mailing" Sent: Saturday, April 16, 2005 3:16 AM Subject: Re: [twsocket] New release: minor bug f

[twsocket] Question >> How can I setup checkboxes to see the FTP-Status

2005-04-16 Thread Mike McGreek
I'm coding with Delphi 2005. Till now I don't see the ftp-status. I like to have 3 checkboxes for each status (Online, 421, Offline). If one status is true the checkbox for the status should be checked. I know that FTPCLI has a status-Option with a log. How can I do it easily to get the status t

Re: [twsocket] Question >> How can I setup checkboxes to see theFTP-Status

2005-04-16 Thread Francois PIETTE
> I'm coding with Delphi 2005. Win32 personnality ? > Till now I don't see the ftp-status. I like to have 3 > checkboxes for each status (Online, 421, Offline). > If one status is true the checkbox for the status > should be checked. > I know that FTPCLI has a status-Option with a log. > How can

Re: [twsocket] Question >> How can I setup checkboxes to see theFTP-Status

2005-04-16 Thread Mike McGreek
Win32, Yes. I had a look into Your FTPTST example. So I need only the status-function. How do You display Your messages? I can't show the messages in my program. In FTPTST is a display-function. procedure Display(const Msg: String); procedure DisplayHandler(Sender: TObject; var Msg :

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Arno Garrels
Mike McGreek wrote: > I don't see any error-message. For example the FTP is not connected, > delphi2005 gives me the error-message with the option to break or > continue. i think i miss something. > So what do I need minimal to get the error-messages? First you are talking about an exception an

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Francois PIETTE
> I don't see any error-message. For example the FTP is not connected, delphi2005 gives me the error-message with the option to break or continue. i think i miss something. > > So what do I need minimal to get the error-messages? Use OnBgException event. Use Try/Except Use Application.OnException

Re: [twsocket] Question >> How can I setup checkboxes to see theFTP-Status

2005-04-16 Thread Mike McGreek
You understand me wrong. I do the connect-call then the other calls. I want to know what I need minimal to get the Error-Messages and the normal messages from the server. Here a example: I connect to the server. The server send me 421 back. If it is 421 my program should wait 2 min for exampl

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Mike McGreek
I tried try/except. try FTPClient1.connect except showmessage(msg); I never got a errormessage. I think I missed to definie msg. ... any Idea? the other things I'll look into it ... Send instant messages to your online friends http://uk.messenger.yahoo.com -- To unsubscribe or chan

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Francois PIETTE
Use individual component method for each step. Foe exemple, instead of Connect, use Open, User and Pass. So at each step you have the status in properties StatusCode and LastResponse. You should have a look at FtpCli.pas source code and see all the properties, events and methods. All names are rea

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Arno Garrels
Mike McGreek wrote: > You understand me wrong. I do the connect-call then the other calls. I > want to know what I need minimal to get the Error-Messages and the normal > messages from the server. > > Here a example: > > I connect to the server. The server send me 421 back. If it is 421 my > pr

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Arno Garrels
Mike McGreek wrote: > You understand me wrong. I do the connect-call then the other calls. I > want to know what I need minimal to get the Error-Messages and the normal > messages from the server. > > Here a example: > > I connect to the server. The server send me 421 back. If it is 421 my > pr

Re: [twsocket] Question >> How can I setup checkboxes to seetheFTP-Status

2005-04-16 Thread Mike McGreek
Arno, I think that will be the easiest way. I'll try it. I readed the whole code and understand it. It is realy good written. Also the infos about each function. Great work. It is more stabil than Indy10. I'll keep on trying ... Probably FtpCli.StatusCode is what you are looking for? Arno Gar

Re: [twsocket] Question >> How can I setup checkboxes toseetheFTP-Status

2005-04-16 Thread Arno Garrels
Mike McGreek wrote: > Arno, I think that will be the easiest way. I'll try it. I readed the > whole code and understand it. That's great, then you have probably realized that in comparison with Indy ICS requires a totaly different programming stile, since virtually anything is event-driven. Given

Re: [twsocket] Question >> How can I setup checkboxes toseetheFTP-Status

2005-04-16 Thread Angus Robertson - Magenta Systems Ltd
> Given you want best performance one should use the async/none-blocking > methods, however in TFtpCli each method has also a blocking (sync) > counterpart that allows you to code more like the Indy way (slow). Indy might be slow, I really don't know, but I don't see using the sync methods in IC

Re: [twsocket] Question >> How can I setup checkboxestoseetheFTP-Status

2005-04-16 Thread Arno Garrels
Angus Robertson - Magenta Systems Ltd wrote: >> Given you want best performance one should use the async/none-blocking >> methods, however in TFtpCli each method has also a blocking (sync) >> counterpart that allows you to code more like the Indy way (slow). > > Indy might be slow, I really don't