this is the scenario:
i create a function getfiles() // that downloads the files from the server.
{
ftp = new FTPClient(host);
.........................
..........................
}
it works fine at the first go but when the connection is lost i catch the exception "Socket Exception:software caused...." and run the same function again in the exception.
This time the exception is "no route to host"