Hi!
I have a GUI app with separate thread where ssh server runs.
In that thread I have an infinite loop:
...
while (true)
{
ssh_session session = ssh_new();
if (ssh_bind_accept(m_sshbind, session) == SSH_ERROR)
{
...
return;
}
...
}
Server thread waits infinitely on ssh_bind_accept until connection comes.
How could I stop ssh server thread from GUI thread correctly?
