Re: [twsocket] FTP Client - Server close Connection

2005-05-10 Thread Artem Antonov
On Tue, 10 May 2005 11:40:01 +0200
 Francois Piette [EMAIL PROTECTED] wrote:
how can I control from client application (with TFTPClient 
component)
that server close connection?
You have an error message or an exception when you send a command.

And how can I upload files to my ftp directory (and downloads them
from it)? If user doesn't have permissions on writing, how I can 
check it?
Same as above, when you send a command to write something (upload a 
file, rename a file, delete a
file), then you get a reply with an error.

See the component properties (you have full source code), and you'll 
immediately understand where
and how the errors are returned :-) Also have a look at FtpTst 
sample program delivered with ICS.

--
[EMAIL PROTECTED]
http://www.overbyte.be
Thanks. Does it mean that I can cyclical send some command (for 
example, to get list of files) each minute, and in the case of error 
user get message : Error connection?

Best regards,
Artem Antonov.
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] FTP Client - Server close Connection

2005-05-10 Thread Francois Piette
 Thanks. Does it mean that I can cyclical send some command (for
 example, to get list of files) each minute, and in the case of error
 user get message : Error connection?

If your goal is to keep the connection alive (most server close it if no 
command is sent), then yes,
you can simply send a command on a regular basis and check the result.

--
[EMAIL PROTECTED]
http://www.overbyte.be


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