Hello again
I'm just trying to figure out if this is a suitable way to check if a connection still exists on an FTP client i'm writing. This is what i've got so far;
The documentation is here if you don't already know it but are good with API's.Code:public boolean checkConnectionExists() { int reply = ftp.getReplyCode(); if(FTPReply.isPositiveCompletion(reply)) { return true; } else { return false; } }
Cheers again


LinkBack URL
About LinkBacks
Reply With Quote