EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to check ElRemotePortForwardSSHTunnel disconnected

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#17257
Posted: 08/11/2011 00:56:50
by Alex Gilev (Standard support level)
Joined: 02/13/2007
Posts: 4

Hello,

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.
#17258
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.
#17259
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 :).
#17260
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.

Reply

Statistics

Topic viewed 2343 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!