<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>.NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx</link><description>My latest .NET Matters column in MSDN Magazine is now available online . In it, I discuss one approach to implementing a BlockingStream and using it to implement a StreamPipeline class.</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>MSDN Blog Postings  &amp;raquo; .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#7126666</link><pubDate>Wed, 16 Jan 2008 08:39:36 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7126666</guid><dc:creator>MSDN Blog Postings  » .NET Matters: Stream Pipeline</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://msdnrss.thecoderblogs.com/2008/01/16/net-matters-stream-pipeline/"&gt;http://msdnrss.thecoderblogs.com/2008/01/16/net-matters-stream-pipeline/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#7879463</link><pubDate>Sun, 24 Feb 2008 19:19:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7879463</guid><dc:creator>john</dc:creator><description>&lt;p&gt;Hello Stehen,&lt;/p&gt;
&lt;p&gt;Very nice article but how do I compile the code?&lt;/p&gt;
&lt;p&gt;I'm using .net 2.0.&lt;/p&gt;
&lt;p&gt;Is Action&amp;lt;Stream, Stream&amp;gt; a 3.x thing ? Because for me, I can just find a System.Action &amp;lt;T&amp;gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#7881550</link><pubDate>Sun, 24 Feb 2008 22:16:03 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:7881550</guid><dc:creator>toub</dc:creator><description>&lt;p&gt;Glad you liked the article. &amp;nbsp;The code requires .NET 3.5, as Action&amp;lt;T1,T2&amp;gt; is a new delegate type defined in System.Core.dll.&lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline or Asynch Stream???</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#8353995</link><pubDate>Thu, 03 Apr 2008 17:40:28 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8353995</guid><dc:creator>rikace</dc:creator><description>&lt;p&gt;My question is about your last two articles &amp;quot;StreamPipeline and Asynch Stream&amp;quot;. &amp;nbsp;To send data using a NetworkStream, assuming I have to compress and to encrypt the byte, is better use the PipeStream or the Asynch method (may be multicasting the delegates)?? &amp;nbsp;and how I can upgrade the code to resolve the issue of the data size, because looping 0X1000 byte at the time with the encryption the size change most of the time.&lt;/p&gt;
&lt;p&gt;Thanks and best regards&lt;/p&gt;
&lt;p&gt;Riccardo&lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#8358992</link><pubDate>Sat, 05 Apr 2008 04:15:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8358992</guid><dc:creator>toub</dc:creator><description>&lt;p&gt;You don't have to choose; you can use them both together. &amp;nbsp;You can use a stream pipeline approach to overlap the encryption with the compression, and you can write the results asynchronously to the network stream. &amp;nbsp;Regarding reading 0x1000 bytes a time, it doesn't matter if you actually get that many; when you call Read, the return value is the number of bytes actually read into the array, and you can then use just that many from the array.&lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#8424192</link><pubDate>Fri, 25 Apr 2008 17:57:47 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8424192</guid><dc:creator>rikace</dc:creator><description>&lt;p&gt;Thanks, &amp;nbsp;I have done a combination of StreamPipeline and Asynch and work just pefect.&lt;/p&gt;
&lt;p&gt;Do you think that using the Parallel tools could increase the performance (using Future&amp;lt;T&amp;gt; and wait for the callback) or becasue is kind of sequntial (compress &amp;gt; encrypt &amp;gt; send ) system it is not possible? &lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#8432515</link><pubDate>Sun, 27 Apr 2008 21:48:29 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8432515</guid><dc:creator>anonymous</dc:creator><description>&lt;p&gt;Hey Stephen, installing SP3 on my Tablet PC Edition 2005 broke Sudoku. Now it gives an error &amp;quot;requires Windows XP Tablet PC Edition 2005&amp;quot;. I've installed the latest Ink 1.7 runtime, recognizer pack everything but after SP3 it doesn't work. Please I don't want to lose a game like MS Sudoku. Can Microsoft fix it to work with SP3?&lt;/p&gt;
</description></item><item><title>re: .NET Matters: Stream Pipeline</title><link>http://blogs.msdn.com/toub/archive/2008/01/15/net-matters-stream-pipeline.aspx#9041616</link><pubDate>Wed, 05 Nov 2008 00:45:22 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9041616</guid><dc:creator>G</dc:creator><description>&lt;p&gt;Wish you had the adaptive huffman code sample available again. Useful especially when Silverlight does not offer IO.Compression stuff.&lt;/p&gt;
</description></item></channel></rss>