<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8840085855436806841.post598573565105558364..comments</id><updated>2011-01-31T19:19:26.596-05:00</updated><title type='text'>Comments on entrepreneurial musings: Socket Programming with Flex and Apache Mina (Part...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.augmentedfragments.com/feeds/598573565105558364/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html'/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_PhxljBBvj_U/SP1ldiIKqEI/AAAAAAAAACI/C5kH5YLttvU/S220/rw_headshot.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-8363914245536564562</id><published>2011-01-31T19:19:26.596-05:00</published><updated>2011-01-31T19:19:26.596-05:00</updated><title type='text'>I am interested as well :)</title><content type='html'>I am interested as well :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/8363914245536564562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/8363914245536564562'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1296519566596#c8363914245536564562' title=''/><author><name>Shannara</name><uri>http://www.blogger.com/profile/05700293580839115132</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-29110061'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-1948680694316271010</id><published>2010-01-27T04:45:35.240-05:00</published><updated>2010-01-27T04:45:35.240-05:00</updated><title type='text'>Ryan, can you show a block of code that make the m...</title><content type='html'>Ryan, can you show a block of code that make the message exchange between flex and java using this approach?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/1948680694316271010'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/1948680694316271010'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1264585535240#c1948680694316271010' title=''/><author><name>Thiago</name><uri>http://www.blogger.com/profile/06226665859485293563</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1528152688'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-3373451531618295877</id><published>2010-01-22T15:37:06.800-05:00</published><updated>2010-01-22T15:37:06.800-05:00</updated><title type='text'>Hi Thiago, 

That&amp;#39;s the exact approach I took ...</title><content type='html'>Hi Thiago, &lt;br /&gt;&lt;br /&gt;That&amp;#39;s the exact approach I took and it worked very well for me.  Best of luck on your game!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/3373451531618295877'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/3373451531618295877'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1264192626800#c3373451531618295877' title=''/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/_PhxljBBvj_U/SP1ldiIKqEI/AAAAAAAAACI/C5kH5YLttvU/S220/rw_headshot.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-222651117'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-5400814979361676652</id><published>2010-01-22T08:24:44.802-05:00</published><updated>2010-01-22T08:24:44.802-05:00</updated><title type='text'>Great post ryan. Can u give more details about the...</title><content type='html'>Great post ryan. Can u give more details about the design of ProtocolCommand class and how you store the information?. Im developing a multplayer game flex/java using apache mina, and i define a class that have a header with OPCode, Lenght of body, and the Body (that is a ByteBuffer ), so in handler i identify the operation and extract the body information. Are you using the same aproach?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/5400814979361676652'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/5400814979361676652'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1264166684802#c5400814979361676652' title=''/><author><name>Thiago</name><uri>http://www.blogger.com/profile/06226665859485293563</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1528152688'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-1870152553923752451</id><published>2008-10-20T07:48:00.000-04:00</published><updated>2008-10-20T07:48:00.000-04:00</updated><title type='text'>Hey Ryan&lt;br&gt;&lt;br&gt;thanx for a nice tip and some good...</title><content type='html'>Hey Ryan&lt;BR/&gt;&lt;BR/&gt;thanx for a nice tip and some good piece of information&lt;BR/&gt;&lt;BR/&gt;very useful blog - thanx again!&lt;BR/&gt;&lt;BR/&gt;Regards</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/1870152553923752451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/1870152553923752451'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1224503280000#c1870152553923752451' title=''/><author><name>Flex programming</name><uri>http://www.iksanika.com/services/internet_intranet/flash_flex_multimedia.html</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-819319765'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-2723569845790453047</id><published>2008-10-09T14:13:00.000-04:00</published><updated>2008-10-09T14:13:00.000-04:00</updated><title type='text'>Honestly, Donald, I'm not sure.  I haven't reached...</title><content type='html'>Honestly, Donald, I'm not sure.  I haven't reached it. The mina list/forums will probably know better.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/2723569845790453047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/2723569845790453047'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1223575980000#c2723569845790453047' title=''/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_PhxljBBvj_U/R6TF-8xnCUI/AAAAAAAAABQ/Mh2dNWh1uIE/S220/n13301832_31394122_3191.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-222651117'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-6265368437341271359</id><published>2008-10-09T13:20:00.000-04:00</published><updated>2008-10-09T13:20:00.000-04:00</updated><title type='text'>Hi Ryan,&lt;br&gt;&lt;br&gt;Thank you so much for sharing!&lt;br&gt;...</title><content type='html'>Hi Ryan,&lt;BR/&gt;&lt;BR/&gt;Thank you so much for sharing!&lt;BR/&gt;&lt;BR/&gt;I have a question:&lt;BR/&gt;I saw statements like "over 4000 concurrent connections ...".  What does it really mean? What is the actual limitation on the max concurrent connections? &lt;BR/&gt;&lt;BR/&gt;Thanks in advance&lt;BR/&gt;&lt;BR/&gt;Donald</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/6265368437341271359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/6265368437341271359'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1223572800000#c6265368437341271359' title=''/><author><name>拇指</name><uri>http://www.blogger.com/profile/10128910628731648931</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1203623283'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-5038569433847481853</id><published>2008-09-14T20:24:00.000-04:00</published><updated>2008-09-14T20:24:00.000-04:00</updated><title type='text'>Hey narup, &lt;br&gt;&lt;br&gt;I like to have a method in my F...</title><content type='html'>Hey narup, &lt;BR/&gt;&lt;BR/&gt;I like to have a method in my Flex object representation of the protocol command called  encode, such as encode():ByteArray, and a static method in the protocol command class called decode that will return an object representation of the particular command, such as decode(bytes:ByteArray):ProtocolCommand.  In a language that supports overloading methods, like Java, I'd just overload the constructor to create one that accepts a Java ByteBuffer, but you can't do that in actionscript, so the static method works fine for decode.  &lt;BR/&gt;&lt;BR/&gt;So, when sending a command to the server, my client calls encode on the ProtocolCommand object I've created, which will return the appropriate ByteArray to write to the socket; and when receiving a command, my client calls the static decode method (using the ByteArray read from the socket as an argument), which will return a nice OO command representation. &lt;BR/&gt;&lt;BR/&gt;So, yes, to a certain extent you have to interpret the bytes somewhere but, if done correctly, you'll only have to do it twice:  once for outgoing, and once for incoming.  I've seen some object representation standards which would let you skip ever dealing with the command as a byte[] and let you read/write objects, but I've never investigated them further, so I'm not sure on those.&lt;BR/&gt;&lt;BR/&gt;Does that answer your questions?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/5038569433847481853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/5038569433847481853'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1221438240000#c5038569433847481853' title=''/><author><name>Ryan</name><uri>http://www.blogger.com/profile/12120844691062261364</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='21' height='32' src='http://bp0.blogger.com/_PhxljBBvj_U/R6TF-8xnCUI/AAAAAAAAABQ/Mh2dNWh1uIE/S220/n13301832_31394122_3191.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-222651117'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-6714809610988343089</id><published>2008-09-14T19:04:00.000-04:00</published><updated>2008-09-14T19:04:00.000-04:00</updated><title type='text'>hi Ryan, one question again :)&lt;br&gt;about the enocde...</title><content type='html'>hi Ryan, one question again :)&lt;BR/&gt;about the enocder/decoder in client side how are you reading the object from the socket, i can get the string as byte arrays, what if i want the complete oject, or i have to construct it myself on the client side based on received bytes. &lt;BR/&gt;thanks</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/6714809610988343089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/6714809610988343089'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1221433440000#c6714809610988343089' title=''/><author><name>narup</name><uri>http://narup.blogspot.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1668963548'/></entry><entry><id>tag:blogger.com,1999:blog-8840085855436806841.post-5160749356938301423</id><published>2008-09-07T19:12:00.000-04:00</published><updated>2008-09-07T19:12:00.000-04:00</updated><title type='text'>hey Ryan, &lt;br&gt;&lt;br&gt;thanks for the post. it did help...</title><content type='html'>hey Ryan, &lt;BR/&gt;&lt;BR/&gt;thanks for the post. it did help.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/5160749356938301423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8840085855436806841/598573565105558364/comments/default/5160749356938301423'/><link rel='alternate' type='text/html' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html?showComment=1220829120000#c5160749356938301423' title=''/><author><name>narup</name><uri>http://narup.blogspot.com</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.augmentedfragments.com/2008/09/socket-programming-with-flex-and-apache.html' ref='tag:blogger.com,1999:blog-8840085855436806841.post-598573565105558364' source='http://www.blogger.com/feeds/8840085855436806841/posts/default/598573565105558364' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-838173095'/></entry></feed>
