Commit Graph

697 Commits

Author SHA1 Message Date
Matthew Vukomanovic 2fd25cb2cb Where appropriate change all -1 and Timespan(0,0,0,-1) to SshNet.Session.Infinite and SshNet.Session.InfiniteTimeSpan 2016-06-14 16:22:43 +08:00
Matthew Vukomanovic 8854821436 Correct the build and sandcastle locations 2016-05-19 14:36:59 +08:00
Matthew Vukomanovic 8586ae283c Exclude build/targets 2016-05-19 14:36:58 +08:00
Matthew Vukomanovic 43f06b56e0 Correct the location of the VS2012.sln file in the build.proj 2016-05-19 14:36:57 +08:00
Matthew Vukomanovic daf5975ae8 Quote MSBUILD_EXE and also use it 2016-05-19 14:36:56 +08:00
Gert Driesen 81f904ecb8 Fix .NET 3.5 test build. 2016-05-16 21:01:57 +02:00
Gert Driesen bc0ccc8546 Added Extensions tests to .NET 3.5 test project. 2016-05-16 21:01:34 +02:00
Gert Driesen 21c4841256 Added Array.cs to SL4 project file. 2016-05-16 21:00:58 +02:00
Gert Driesen d11eeb4185 Moved both parts of Extensions partial class to Common namespace. 2016-05-16 20:30:31 +02:00
Gert Driesen df1211a0b1 Added Array.cs to WP project 2016-05-16 20:29:33 +02:00
Gert Driesen 0c5778d449 ASCIIEncoding does not exist for WP8 2016-05-16 20:29:22 +02:00
drieseng 49efc18690 Added doc for Take.
Added null checks to IsEqualTo.
2016-05-16 19:18:39 +02:00
drieseng 3ab6ee413f Avoid using Linq where a more performant alternative is readily available. 2016-05-16 17:22:12 +02:00
drieseng 74088c38a5 Avoid initializing data. 2016-05-16 17:19:56 +02:00
drieseng 21e81d0c78 Added ReadContinuous method. 2016-05-16 17:19:19 +02:00
drieseng 05d8ccbd7b Avoid using less optimal Linq, and use optimized extension methods instead. 2016-05-16 17:03:38 +02:00
drieseng b359dfa1e5 Added Array class which allows an empty array<T> to be reused.
Use BCL ASCIIEncoding class where available.
2016-05-16 16:45:22 +02:00
drieseng 5b3dd35b6f IsSingleByte cannot be overridden on SL/WP. 2016-05-16 16:22:06 +02:00
drieseng c7e3268569 Removed IsEqualTo<T>(this IEnumerable ...) overloads.
Renamed TrimLeadingZero to TrimLeadingZeros.
Added optimizations for Take(this byte[], int, int).
Added Take(this byte[], int) overload.
Added optimized IsEqualTo(this byte[], byte[]).
Added Concat(this byte[], byte[]).
2016-05-16 16:21:17 +02:00
drieseng 203d228a9b Eliminate unused bufferSize. 2016-05-16 16:08:05 +02:00
drieseng c4b09f7c48 Test cleanup. 2016-05-16 13:50:46 +02:00
drieseng 38b6bcdc0c Added tests for BigInteger. In huge parts based on the unit tests in Mono.
Update to latest version of BigInteger in Mono before the integration of the MS reference source.
Added slashdoc based on MSDN.
2016-05-16 13:49:56 +02:00
drieseng b64475d623 Improve compatibility with BCL ASCIIEncoding:
Fixed GetMaxByteCount and GetMaxCharCount.
Override IsSingleByte to always return true.
Added tests.
2016-05-15 12:07:42 +02:00
drieseng 7962f835cf Fixed typo. 2016-05-14 08:57:15 +02:00
drieseng a7a6e0552e SocketRead:
* Do not pass buffer by reference.
* Use infinite timeout when reading from socket.
2016-05-06 19:20:10 +02:00
drieseng a567151417 Merge branch 'develop' of https://github.com/sshnet/SSH.NET.git 2016-05-06 09:56:56 +02:00
drieseng 14e26081af Added more information for the terminalName argument of CreateShellStream.
Fixes issue #10.
Removed bufferSize from the ShellStream ctor.
2016-05-06 09:56:48 +02:00
Gert Driesen 4dfa6f4d6e Tuning is always active now 2016-05-05 18:37:52 +02:00
drieseng a924a3ba03 Always use "tuning" code.
Avoid some NRE in Dispose.
2016-05-05 18:07:37 +02:00
drieseng 17f30f1135 Have Read(...) and ReadPartial(...) respect specified timeout in synchronous mode.
Make IsErrorResumable public.
2016-05-05 18:02:28 +02:00
drieseng dc327d7887 No longer unscribe from Session events in finalizer, as we wouldn't even get finalized if Session still had subscriptions for the current instance. 2016-05-03 21:35:57 +02:00
drieseng 28a1892dc2 Fixed some warnings. 2016-05-01 20:11:03 +02:00
drieseng e7ce24932a Add back partial modifier on Extensions. 2016-05-01 20:00:43 +02:00
drieseng a4d01b9fac Do not show warnings that we cannot fix without breaking the VS 2012 build. 2016-05-01 19:58:26 +02:00
drieseng 9334312d04 Avoid event-based memory leak in case of exception in Authenticate.
Simplify Dispose(bool).
2016-05-01 19:57:59 +02:00
drieseng 1ce21e4ed7 Use List.Count instead of Enumerable.Count(). 2016-05-01 19:55:37 +02:00
drieseng 1cfa14455b Fixed warnings. 2016-05-01 19:54:42 +02:00
drieseng eb044f58e6 Remove unused imports. 2016-05-01 19:53:00 +02:00
drieseng 81fb70798d Avoid possible NRE. 2016-05-01 19:51:33 +02:00
drieseng 063947483c Make ctor protected.
Remove this qualifier.
2016-05-01 19:51:15 +02:00
drieseng 06b5128916 Remove this qualifier. 2016-05-01 19:49:50 +02:00
drieseng 0f5d2f5ad4 Remove unused import. 2016-05-01 19:44:06 +02:00
drieseng 68b2267103 Avoid possible NRE. 2016-05-01 19:42:52 +02:00
drieseng 316ae12fdc Remove this qualifier. 2016-05-01 19:42:18 +02:00
drieseng 58086b9ef4 Fix bunch of warnings. 2016-05-01 18:21:23 +02:00
drieseng 868f981c4a Remove qualifier. 2016-05-01 17:00:18 +02:00
drieseng 780217820f Remove unused import. 2016-05-01 14:50:21 +02:00
drieseng bda8b0bcd9 Removed this qualifier. 2016-05-01 14:50:11 +02:00
drieseng 11f77bc177 Remove partial modifier. 2016-05-01 14:48:55 +02:00
drieseng e09239ef0e Avoid event-based memory leak when client is not disposing. 2016-05-01 14:47:46 +02:00