Hi,Hoping that someone will answer this time: here is a little problem I've
been having.I am writing an application that creates a functional reverse SSH
tunnel. The tunnel is working, but in order to connect a second time I have to
restart my program that starts the SSH connection an creates the tunnel. I
created the following while loop:
while (1) { fw_channel =
ssh_channel_accept_forward(session, 60000, NULL); if (fw_channel !=
NULL) { run_forwarding(local_socket, fw_channel);
} ssh_channel_close(fw_channel); }
the run_forwarding works correctly and exits when either the server or the
client disconnects. The functions ssh_channel_accept_forward returns a new
channel and the run_forwarding() will start again the second time. However no
data will be received over the channel during a second or third connection.
This piece of code will work when connecting for the first time, but it doesn't
when I close the VNC client and restart it. I have tried removing the close
function, sending a new forward request etc. Is it not possible to assign a new
channel to a channel-variable that has already been used?
Kind regards,Lars van Ruiten