> Kevin Fishburne wrote: > > Ahh, I understand a little better. I don't know much about endianness, > so please excuse my ignorance here. > > ... > > While it would be slow, I could just write functions for flipping the > byte order of characters in a string. That would work fine for the > client but may impact performance server side. I'll do some > experimenting tomorrow to see what I can come up with. >
Wikipedia is your friend, Kevin. http://en.wikipedia.org/wiki/Endianness And UTF-8 strings used by Gambas are not endianness-dependent. Anyway, I'm almost sure that you can decode messages with READ while you receive them, and store the decoded data in an array, or a collection (the data is then indexed by name, easier but slower), and then process them later as you wanted. Regards, -- Benoît Minisini ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user