Re: [twsocket] FTPClient1 - OnError() event

2016-08-23 Thread Angus Robertson - Magenta Systems Ltd
> *Subject:* [twsocket] FTPClient1 - OnError() event
> I would like to know that my command finished successfully. That 
> I do in OnRequestDone() event. However, there are times that
> there will be errors When such a thing occurs, I get error
> message displayed using OnError() event.

The OnError event is called for errors before an FTP request actually
starts, instead of OnRequestDone.   Usually incorrect information
passed for the command, or no connection so the command can not start,
or already connected when trying to connect.  

So it's one event or the other, for async methods.  For sync it does
not matter.   

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] FTPClient1 - OnError() event

2016-08-02 Thread Ertan Küçükoğlu
Hi,

I will try to ask my question in an understandable way. If it is not clear,
just give it to my lack of sockets knowledge. I might be choosing confusing
words.

I would like to know that my command finished successfully. That I do in
OnRequestDone() event. However, there are times that there will be errors
(ftp server down, file not present, connection dropped for some reason,
etc.) When such a thing occurs, I get error message displayed using
OnError() event.

If logic reaches to OnError() event of TFtpClient does it mean that
OnRequestDone() won't be called until another command run on the component
(such as change directory, connect, disconnect, etc)? Can I put a "Operation
interrupted" kind of message after I print error message on the screen?

If an OnError() event is not absolute stop of execution, how can I know it
will continue?

Thanks.

Regards,
Ertan Küçükoğlu


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be