<?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: Flash Socket Class Does Not Wait For Flush</title>
	<atom:link href="http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/</link>
	<description>Adobe, Flash, Flex, AIR, Technology</description>
	<lastBuildDate>Wed, 28 Jul 2010 13:21:51 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Steven Sacks</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-21365</link>
		<dc:creator>Steven Sacks</dc:creator>
		<pubDate>Thu, 08 Apr 2010 21:07:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-21365</guid>
		<description>That is incorrect. You haven&#039;t tested this. If you had, you would know that what you just said is wrong.

I am on Windows and when I write to the Socket, the server immediately receives it.  Same thing happens on Mac and Linux.  There is no platform inconsistency.

I&#039;m surprised that Adobe still hasn&#039;t updated the documentation.</description>
		<content:encoded><![CDATA[<p>That is incorrect. You haven&#039;t tested this. If you had, you would know that what you just said is wrong.</p>
<p>I am on Windows and when I write to the Socket, the server immediately receives it.  Same thing happens on Mac and Linux.  There is no platform inconsistency.</p>
<p>I&#039;m surprised that Adobe still hasn&#039;t updated the documentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Joe Ward</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-21364</link>
		<dc:creator>Joe Ward</dc:creator>
		<pubDate>Thu, 08 Apr 2010 21:02:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-21364</guid>
		<description>As to the flush() behavior, on Mac and Linux, flush() is called implicitly between execution frames. So if you wrote two bytes in different write calls in the same function, for example, those two bytes are sent together. If the writes were separated by an async event, then they would be sent separately. 

However, on Windows, data is never sent unless you call flush(). The platform inconsistency is a bug, but the docs were essentially correct (just incomplete).</description>
		<content:encoded><![CDATA[<p>As to the flush() behavior, on Mac and Linux, flush() is called implicitly between execution frames. So if you wrote two bytes in different write calls in the same function, for example, those two bytes are sent together. If the writes were separated by an async event, then they would be sent separately. </p>
<p>However, on Windows, data is never sent unless you call flush(). The platform inconsistency is a bug, but the docs were essentially correct (just incomplete).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Sacks</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-20516</link>
		<dc:creator>Steven Sacks</dc:creator>
		<pubDate>Thu, 11 Mar 2010 21:18:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-20516</guid>
		<description>There is no flushing of a socket.  The moment you say socket.writeWhatever, the bytes are sent to the server immediately.</description>
		<content:encoded><![CDATA[<p>There is no flushing of a socket.  The moment you say socket.writeWhatever, the bytes are sent to the server immediately.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 62316e</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-20498</link>
		<dc:creator>62316e</dc:creator>
		<pubDate>Thu, 11 Mar 2010 15:49:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-20498</guid>
		<description>So, how to flush socket?</description>
		<content:encoded><![CDATA[<p>So, how to flush socket?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Sacks</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-19871</link>
		<dc:creator>Steven Sacks</dc:creator>
		<pubDate>Wed, 24 Feb 2010 03:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-19871</guid>
		<description>It&#039;s been almost 3 months and the documentation remains unchanged.  Will you be updating this anytime soon?</description>
		<content:encoded><![CDATA[<p>It&#039;s been almost 3 months and the documentation remains unchanged.  Will you be updating this anytime soon?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: maliboo</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-17292</link>
		<dc:creator>maliboo</dc:creator>
		<pubDate>Wed, 09 Dec 2009 13:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-17292</guid>
		<description>As Steven said there are huge problems with getting sending progress with Socket class. So don;t forget to vote on this bug@Adobe JIRA:
http://bugs.adobe.com/jira/browse/FP-6
;)</description>
		<content:encoded><![CDATA[<p>As Steven said there are huge problems with getting sending progress with Socket class. So don;t forget to vote on this bug@Adobe JIRA:<br />
<a href="http://bugs.adobe.com/jira/browse/FP-6" rel="nofollow">http://bugs.adobe.com/jira/browse/FP-6</a><br />
 <img src='http://www.stevensacks.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Sacks</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-17274</link>
		<dc:creator>Steven Sacks</dc:creator>
		<pubDate>Wed, 09 Dec 2009 00:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-17274</guid>
		<description>Thanks! Now how about returning progress, or being able to see how many bytes remain on the socket so I can tell if the socket is blocked, etc.</description>
		<content:encoded><![CDATA[<p>Thanks! Now how about returning progress, or being able to see how many bytes remain on the socket so I can tell if the socket is blocked, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jody Bleyle</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-17273</link>
		<dc:creator>Jody Bleyle</dc:creator>
		<pubDate>Wed, 09 Dec 2009 00:05:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-17273</guid>
		<description>Nice catch, Steven, thank you. I&#039;m updating the documentation source now and we&#039;ll push the changes live as soon as we can. 

Jody Bleyle
Sr. Technical Writer
Adobe Systems, Inc.</description>
		<content:encoded><![CDATA[<p>Nice catch, Steven, thank you. I&#039;m updating the documentation source now and we&#039;ll push the changes live as soon as we can. </p>
<p>Jody Bleyle<br />
Sr. Technical Writer<br />
Adobe Systems, Inc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Sacks</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-17270</link>
		<dc:creator>Steven Sacks</dc:creator>
		<pubDate>Tue, 08 Dec 2009 21:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-17270</guid>
		<description>Ok, so it&#039;s confirmed (from you and elsewhere) that Socket sends the data the moment you write anything to it.

The documentation is wrong throughout (every write function says it doesn&#039;t send until you call flush, and flush says it sends the data, but, in fact, does nothing because the data is already sent instantly).</description>
		<content:encoded><![CDATA[<p>Ok, so it&#039;s confirmed (from you and elsewhere) that Socket sends the data the moment you write anything to it.</p>
<p>The documentation is wrong throughout (every write function says it doesn&#039;t send until you call flush, and flush says it sends the data, but, in fact, does nothing because the data is already sent instantly).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gardner</title>
		<link>http://www.stevensacks.net/2009/12/08/flash-socket-class-does-not-wait-for-flush/comment-page-1/#comment-17269</link>
		<dc:creator>Gardner</dc:creator>
		<pubDate>Tue, 08 Dec 2009 21:10:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.stevensacks.net/?p=526#comment-17269</guid>
		<description>Unfortunately sockets are kinda like this at the system level as well. Flushing just ensures that there is no queued data but once you chuck the data into send() it gets sent whenever the tcp stack gets around to it. Check out http://msdn.microsoft.com/en-us/library/ms740149%28VS.85%29.aspx Specifically: &quot;If no error occurs, send returns the total number of bytes sent, which can be less than the number requested to be sent in the len parameter.&quot; At least the winsock api tell you how many bytes you&#039;ve sent...</description>
		<content:encoded><![CDATA[<p>Unfortunately sockets are kinda like this at the system level as well. Flushing just ensures that there is no queued data but once you chuck the data into send() it gets sent whenever the tcp stack gets around to it. Check out <a href="http://msdn.microsoft.com/en-us/library/ms740149%28VS.85%29.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/ms740149%28VS.85%29.aspx</a> Specifically: &#034;If no error occurs, send returns the total number of bytes sent, which can be less than the number requested to be sent in the len parameter.&#034; At least the winsock api tell you how many bytes you&#039;ve sent&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
