On 9/18/06, E. Dominguez <[EMAIL PROTECTED]> wrote:
Hi all,
how can I set a timeout to an ftp connection?
In my program, if I try to connect to an unavailable ftp server the
application hangs (better said waits...).
OS is iSeries's OS400 v5r3 or better.
[code]
FTPClient client = new FTPClient();
client.connect("myhost.com");
//application hangs waiting if no server responding...
client.login("user","password");
//(...)
[/code]
Kind regards
elvisd
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I don't have the docs in front of me at the moment, but I think there is
another connect() method that takes a connection timeout.
--
Jamie Bisotti