Question:
I looked through the forums and couldn't seem to find this information. Is there an event that I can trigger when the remote host disconnects an SSH connection? Say for example, to close a terminal if the remote side ends the connection?
I get this kind of question from time to time. The answer is that you only need to remember the most fundamental thing about computer programs -- that they are series of instructions executed one after the other.
What is an "event callback"? It's where your application essentially provides a function pointer that will be called back from within the called method. Let's follow the thread of execution:
To answer your question: Chilkat would only know about the disconnect if it was actively trying to read/write the socket. That can only happen when your application has made a Chilkat method call and the thread of execution is within the Chilkat method. Upon a disconnect, it wouldn't be an event that is raised, but it would simply cause the Chilkat method call to return.