I have been trying to write as small app that can test hosts to see if they have white listing enabled.
I have it working but the tunnel/channel is running in a thread and any errors are being raised in the channels onerror event and I have not been able to get it to sync with the my app GUI.
What I mean is I can establish a ssh client connection to the host I want to forward ports from, then when I create a channel to the remote host with a local source port and then I connect with a Indy TCP client to read the banner, if the host does not exist the error gets raised in the channels on error event and I can't get it to sync with the exception handler I have around the idtcpclient connect and read line.
Synchronous port forwarding tunnel possible?
-
- Posts: 132
- Joined: Wed 17 Aug 2016 05:57
Re: Synchronous port forwarding tunnel possible?
Please send us an example via the contact form (https://devart.com/company/contactform.html), and we'll do our best to offer you the best solution to the defined task.