Re: How tocheck whether a Connection has been made (General questions)
the application created a number of SFTP() although I'm checking whether it's null.
if(sftp == null)
sftp = new SFTP(); //this is executed as many as the number of files, Why??!!
if(sftp.State != SFTP.Stated.Idle || sftp.State =! SFTP.States.Connecting)
sftp.Connect() //still execute this as many as the number of files!!!
is it because the sftp created has a unique number associated with it. if so, how can i prevent the system from being hanged due to the high number of connections made to the server?!!