EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to check ElRemotePortForwardSSHTunnel disconnected

Posted: 08/11/2011 00:56:50
by Alex Gilev (Standard support level)
Joined: 02/13/2007
Posts: 4


I am using Delphi\RemotePortForwarding demo and it works very well, open port at remote side, so my website script able to tonnect to local webserver app.
Local Internet connection is not stable, so I need to know when tunnel is not working any more to make disconnect/connect. How I can do this?

Thank you.
Posted: 08/11/2011 01:08:55
by Vsevolod Ievgiienko (Team)

Thank you for contacting us.

You can check this by handling TElSSHRemotePortForwarding.OnError event and checking if ErrorCode = ERROR_SSH_CONNECTION_LOST.
Posted: 08/11/2011 01:50:30
by Alex Gilev (Standard support level)
Joined: 02/13/2007
Posts: 4

Thank you for quick answer.

As I can see I selected not correct demo, in the SSHBlackbox\Client\RemotePortForwarding does not exist such component. Will try to use SSHBlackbox\Client\SimplePortForwarding\Remote now :).
Posted: 08/11/2011 01:57:39
by Vsevolod Ievgiienko (Team)

The demo is correct, but it demonstrates how to use the low-level component for remote port forwarding. It is recommended to use the high-level one (TElSSHRemotePortForwarding) wich usage is demonstrated in SimplePortForwarding\Remote demo.



Topic viewed 3046 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!