Hi Guys,
I am using JSch to connect to SShd and then using port forwarding to forward the data.
In my application I want to make sure if the server is alive or not proactively. How can I do that?
The thing is I want to show my customer yes the connection between the client and server is up. I tried using the isConnected method of the Session class but that doesn't give the right information because if I kill server in backed it still keep returning true.
Any help in how do this is really appreciated.
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Guys,
I am using JSch to connect to SShd and then using port forwarding to forward the data.
In my application I want to make sure if the server is alive or not proactively. How can I do that?
The thing is I want to show my customer yes the connection between the client and server is up. I tried using the isConnected method of the Session class but that doesn't give the right information because if I kill server in backed it still keep returning true.
Any help in how do this is really appreciated.
Thanks