Re: SSH.net Exception :: Timeout occurred due to i - WeOnlyDo Discussion board

Re: SSH.net Exception :: Timeout occurred due to i (General questions)

by wodDamir, Wednesday, July 25, 2012, 22:40 (4290 days ago) @ digimenet

Jairo,

WaitFor returns everything it received up until the Prompt.

Setting Dataready to 0 ensures that there is no leftover data in buffer.

As for the 3rd question, calling WaitFor makes sure that data is pulled from buffer. Calling execute now will return only the data that was received by the command sent in Execute call.

The 3rd parameter in Execute call is Timeout parameter, in seconds. It's the time component will wait until proceeding with the code.

Regards,
Damba


Complete thread: