Re: SSH.net Exception :: Timeout occurred due to i (General questions)
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:
- SSH.net Exception :: Timeout occurred due to inact - Jairo Martinez, 2012-07-25, 20:25
- Re: SSH.net Exception :: Timeout occurred due to i - wodDamir, 2012-07-25, 21:33
- Re: SSH.net Exception :: Timeout occurred due to i - digimenet, 2012-07-25, 22:13
- Re: SSH.net Exception :: Timeout occurred due to i - wodDamir, 2012-07-25, 22:40
- Re: SSH.net Exception :: Timeout occurred due to i - digimenet, 2012-07-25, 22:13
- Re: SSH.net Exception :: Timeout occurred due to i - wodDamir, 2012-07-25, 21:33