How to return data line by line (wodSSH / wodSSH.NET)
Because ReceiveLine will block if there is no complete line in buffer, while PeekLine raises an exception. If I don't get the exception, I know there is a line in buffer and so I can use ReceiveLine (in later tests I replaced with Receive(length) but it is the same). But even so, I still got blocked sometimes.
Maybe the receive buffer is modified while I am extracting the data? if so, how can I prevent this to happening?
Complete thread:
- How to return data line by line - Ernesto Cullen, 2014-11-19, 12:26
- How to return data line by line - Jasmine, 2014-11-19, 13:48
- How to return data line by line - Ernesto Cullen, 2014-11-19, 14:39
- How to return data line by line - Jasmine, 2014-11-19, 15:12
- How to return data line by line - Ernesto Cullen, 2014-11-19, 19:04
- How to return data line by line - Jasmine, 2014-11-19, 19:26
- How to return data line by line - Ernesto Cullen, 2014-11-19, 19:36
- How to return data line by line - Jasmine, 2014-11-19, 21:29
- How to return data line by line - Ernesto Cullen, 2014-11-19, 19:36
- How to return data line by line - Jasmine, 2014-11-19, 19:26
- How to return data line by line - Ernesto Cullen, 2014-11-19, 19:04
- How to return data line by line - Jasmine, 2014-11-19, 15:12
- How to return data line by line - Ernesto Cullen, 2014-11-19, 14:39
- How to return data line by line - Jasmine, 2014-11-19, 13:48