Menu

#5 Improved SSHStream.cs Class

open
nobody
None
5
2014-11-13
2010-10-28
No

I've improved the ReadResopnse method in the SSHStream class which is currently commented out of the source code. When reading the SSH responses before you had to put in artificial waits before attempting to read if you weren't sure what the Prompt character would be. But now it will read until it hits a prompt character or until a predefined time limit expires. If data starts being received it will read until the data is no longer being received. This results in a good performance and prevents having to write a bunch of delaying code around this method's invocations.

Discussion

  • Paul Mendoza

    Paul Mendoza - 2010-10-28

    Improved the SSHStream class ReadResponse method.

     
  • Federico

    Federico - 2014-11-13

    I updated the Mendoza SshStream method adding a new one accepting a custom port to connect to.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.