EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Run() for ElSFTPSSHSubsystemHandler with Delayed

Also by EldoS: CallbackRegistry
A component to monitor and control Windows registry access and create virtual registry keys.
#6072
Posted: 05/02/2008 08:59:46
by TJ Kolev (Standard support level)
Joined: 12/02/2006
Posts: 6

Hello!

From the documentation on constructor ElSFTPSSHSubsystemHandler(ElSSHTunnelConnection Connection, bool Delayed);

"Both constructor variants create new handler but Create runs it at once but when you use CreateDelayed or in .NET Delayed = True, you have to call Run method to run the handler."

I do set Delayed to true, but I don't call Run(). Code still works. I guess I've copied the code from your SSHServer sample. Here's the line that constructs it in SFTPSession.cs

19 m_thread = new TElSSHSubsystemThread(new TElSFTPSSHSubsystemHandler(conn, true), conn, true);

There's no call to the Run() method. Is there supposed to be one? Or is the documentation incorrect?

Thank you.
tjk :)
#6081
Posted: 05/02/2008 11:12:20
by Ken Ivanov (EldoS Corp.)

TElSSHSubsystemThread automatically runs the passed handler, even though it has been created with Delayed parameter set to true.

Reply

Statistics

Topic viewed 1584 times

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




|

Back to top

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

Got it!