<?xml version="1.0" encoding="iso-8859-1"?><rss version="2.0">
<channel><title><![CDATA[ActionScript.org Flash, Flex and ActionScript Resources - Comments for article: C++ And Flash [Tutorial on How to make An MMO]]]></title><link>http://www.actionscript.org/resources</link><description /><language>en-us</language><copyright><![CDATA[http://www.actionscript.org/resources]]></copyright><generator>N/A</generator><webMaster>general.redirect@gmail.com</webMaster><lastBuildDate>Sun, 22 Nov 2009 15:26:48 CST</lastBuildDate><ttl>20</ttl><item><title><![CDATA[Comment #1]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment728</link><description><![CDATA[Potentially a very useful article, however the link for the files is broken.<br/><br/>
(Comment posted by David at 9:12 am, Tue 20th Feb 2007)]]></description><author>no@spam.com (David)</author><pubDate><![CDATA[Tue, 20 Feb 2007 09:12:23 CST]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment728</guid></item><item><title><![CDATA[Comment #2]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment1709</link><description><![CDATA[It should be noted that the author appears to be using Windows specific code (even though he is using a free gcc compiler and IDE) for the server. C/C++ can be platform agnostic through the use of 3rd party libraries such as SDL (w/ SDL_net) which is used for commercial titles such as Quake (I know they used SDL, not sure of the SDL_net part) which are quite free. 

It should also be noted that it is possible to send multiple small data packets from the server in one send call which will be interpreted by actionscript as multiple packets. This can cut down on the TCP overhead which can kill an MMO that sends lots of small packets (which is why UDP is prefered for MMO).

The way to do this on the server side is to keep an ordered container of packets that need to be sent each frame (std::queue comes to mind). Right before sending you add the packets one at a time to a buffer using a nul as a delimeter between them as well as at the end of the buffer. Then you send the entire buffer at once. Note: you must manually keep track of the size of the buffer as strlen() will not work due to the embedded nul characters.

You will notice latency improvements using this method especially as the number of concurrent players increases.

<br/><br/>
(Comment posted by Jesse Howard at 1:51 pm, Fri 23rd Mar 2007)]]></description><author>no@spam.com (Jesse Howard)</author><pubDate><![CDATA[Fri, 23 Mar 2007 13:51:51 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment1709</guid></item><item><title><![CDATA[Comment #3]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment4712</link><description><![CDATA[1.  The link for the files doesn't work
2.  You really need to work on your witting.  A LOT of spelling mistakes and typos.  Also, using abbreviations like 'idk' and using broken/short form English isn't good in tutorials.
3.  Tutorial isn't too helpful.  You mostly threw a bunch of code at us, and didn't quite explain it.  I personally understood it, but I doubt most people would.<br/><br/>
(Comment posted by Anonymous at 3:54 am, Tue 17th Jul 2007)]]></description><author>no@spam.com (Anonymous)</author><pubDate><![CDATA[Tue, 17 Jul 2007 03:54:03 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment4712</guid></item><item><title><![CDATA[Comment #4 (Reply to Comment #3)]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment12741</link><description><![CDATA[this guy "Anonymous" is a tool - ignore his blah blah<br/><br/>
(Comment posted by Joenonymous at 3:38 pm, Mon 9th Mar 2009)]]></description><author>no@spam.com (Joenonymous)</author><pubDate><![CDATA[Mon, 09 Mar 2009 15:38:45 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment12741</guid></item><item><title><![CDATA[Comment #5]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment5459</link><description><![CDATA[i did not get it. like 15 actioscript errors.<br/><br/>
(Comment posted by khjhl at 3:20 pm, Fri 17th Aug 2007)]]></description><author>no@spam.com (khjhl)</author><pubDate><![CDATA[Fri, 17 Aug 2007 15:20:30 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment5459</guid></item><item><title><![CDATA[Comment #6]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment6080</link><description><![CDATA[The link is broken because their is a new version. v2.0 is located on the site :) sorry for inconvenience.<br/><br/>
(Comment posted by Article Owner at 12:07 am, Mon 17th Sep 2007)]]></description><author>no@spam.com (Article Owner)</author><pubDate><![CDATA[Mon, 17 Sep 2007 00:07:33 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment6080</guid></item><item><title><![CDATA[Comment #7]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment13221</link><description><![CDATA[I don't get it???<br/><br/>
(Comment posted by Hiya at 3:03 am, Sun 12th Jul 2009)]]></description><author>no@spam.com (Hiya)</author><pubDate><![CDATA[Sun, 12 Jul 2009 03:03:43 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment13221</guid></item><item><title><![CDATA[Comment #8]]></title><link>http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment13361</link><description><![CDATA[Where is the new version located?<br/><br/>
(Comment posted by pwnface at 8:57 pm, Wed 19th Aug 2009)]]></description><author>no@spam.com (pwnface)</author><pubDate><![CDATA[Wed, 19 Aug 2009 20:57:22 CDT]]></pubDate><guid isPermaLink="true">http://www.actionscript.org/resources/articles/556/1/C-And-Flash-Tutorial-on-How-to-make-An-MMO/Page1.html#Comment13361</guid></item></channel></rss>