Yes. If you have an existing binary connection, that you need to interface with, I'd suggest handling it on the server and translating it into something that you can handle in Flash. If XML is ok, then you can easily create socket servers in Python, PHP, Java,... etc. Otherwise, you can use AMF over RTMP, which would mean Red5 or FMS.
Peter On 5/7/06, Chris Allen <[EMAIL PROTECTED]> wrote:
Peter is right. I had all kinds of issues with certain Jabber XMPP servers that wouldn't return the null byte at the end of stanzas. XMLSocket definitely needs this. And as he says, if it receives one of those suckers in the middle of one of your packets, it's going to trigger the onMessage event. Plus, whatever you get back will need to go through some type of deserialization, and Flash 8 and below are way too slow to make most protocols practical. If you need binary data over a socket for any player less than Flash 9, take a look at using RTMP. Either Flash Media Server or Red5 would be a good solution. Red5 will obviously give you more flexibility as it's open source (you might even be able to implement your own protocol on top of RTMP), but we are not quite ready for production deployments at the moment. With that said, it is working, and you may be able to start working on your solution right away. For more info on Red5 take a look here: http://osflash.org/red5 -Chris On 5/7/06, Peter Hall <[EMAIL PROTECTED]> wrote: > And FWIW, you will have all kinds of problems using XMLSocket for binary > data, in either direction. For example, when receiving binary data, if there > is a null byte, the byte will be considered to be a packet delimiter, and > will be removed (and preceding data will be passed as a string to onData). > > Peter > > > On 5/7/06, Peter Hall <[EMAIL PROTECTED]> wrote: > > > > No, not really. > > If you can wait until Flash Player 9, the AS3 Socket object handles binary > > data natively. > > > > Peter > > > > > > > > > > On 5/7/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > > Binary Data through XMLSocket : > > > ------------------------------- > > > > > > How we can send binary data through XMLSocket.I have been able to > > > receive > > > binary data but not been able to send binary data through XMLSocket i > > > tried > > > using Array > > > but it automatically inserted commas between the elements of Array.Isthere > > > is any data structure that i can use to send the binary data through > > > xmlsocket. > > > > > > > > > Max _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

