Quantcast
Channel: sshnet Source Code Rss Feed
Viewing all articles
Browse latest Browse all 291

Source code checked in, #41258

$
0
0
* Introduced ChannelExtendedDataEventArgs which is used to signal receive of extended data. * Removed DataTypeCode from ChannelDataEventArgs, as this is specific to extended data. * Large set of optimizations in receive and send of SSH messages: - removed several buffer copies - modified most of the SSH messages to allow the size of the message to be calculated in advance to eliminate need to resize buffer. - added Compress(byte[] data, int offset, int length) overload to Compressor to compress part of a given buffer thereby avoiding need for buffer copy. - added Encrypt(byte[] data, int offset, int length) overload to Cipher to encrypt part of a given buffer thereby avoiding need for buffer copy. * SshData: - SshData.GetBytes uses a SshDataStream which has a capacity that (in almost all cases) matches the size of the SSH message. - Added a Load(byte[] value, int offset) overload. - Added a LoadBytes(byte[] bytes, int offset) overload. - Added a Write(byte[] data) overload. - Added a Write(byte[] buffer, int offset, int count) overload. * Added SendData(byte[] data, int offset, int size) overload to Channel to allow sending part of a given buffer. This avoids a buffer copy in ScpClient, SftpClient, Shell, ChannelDirectTcpip, ChannelForwardedTcpip. Fixes issue #1516. All optimization changes above are only active when the TUNING conditional compilation symbol is defined. By default, this symbol is defined.

Viewing all articles
Browse latest Browse all 291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>