Synchronous port forwarding tunnel possible?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
tcaduto12068
Posts: 132
Joined: Wed 17 Aug 2016 05:57

Synchronous port forwarding tunnel possible?

Post by tcaduto12068 » Mon 27 Jan 2020 19:09

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.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Synchronous port forwarding tunnel possible?

Post by ViktorV » Tue 28 Jan 2020 15:59

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.

Post Reply