receive output - WeOnlyDo Discussion board

receive output (wodSSH / wodSSH.NET)

by wodSupport, Wednesday, September 03, 2014, 09:49 (1974 days ago) @ Ganesh Sankpal


code is more/less ok, except don't use Sleep to block the thread since wodSSH is living in the same thread.

Rather, set wodSSH->put_Timeout(0) or to some really large value. This will cause wodSSH not to timeout by itself. However, your TCP connection could be broken by 3rd party (such as router, or the server) if there's no traffic for a long period of time.

If wodSSH doesn't timeout by itself, you don't need Sleep so remove it, and just leave Receive call(s) to obtain the data.

Hope this helps!

Complete thread: