<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Asynchronous Server Socket using C#</title>
	<atom:link href="http://www.csharphelp.com/2007/02/asynchronous-server-socket-using-c/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csharphelp.com/2007/02/asynchronous-server-socket-using-c/</link>
	<description>C# Tutorial and Guides</description>
	<lastBuildDate>Tue, 15 Feb 2011 13:39:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jake</title>
		<link>http://www.csharphelp.com/2007/02/asynchronous-server-socket-using-c/#comment-37</link>
		<dc:creator>Jake</dc:creator>
		<pubDate>Tue, 01 Jun 2010 15:53:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.csharphelp.com.php5-3.dfw1-2.websitetestlink.com/?p=468#comment-37</guid>
		<description>I solved the problem by removing the else clause in ReadCallback, so it always looks to receive more until the bytesRead is 0; It works great.


//else
//{
//    // Not all data received. Get more.

handler.BeginReceive(state.buffer, 0, StateObject.BufferSize, 0, new AsyncCallback(this.ReadCallback), state);

//}</description>
		<content:encoded><![CDATA[<p>I solved the problem by removing the else clause in ReadCallback, so it always looks to receive more until the bytesRead is 0; It works great.</p>
<p>//else<br />
//{<br />
//    // Not all data received. Get more.</p>
<p>handler.BeginReceive(state.buffer, 0, StateObject.BufferSize, 0, new AsyncCallback(this.ReadCallback), state);</p>
<p>//}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

