I write a chat server in c++ and a flash client in flex3.
the message exchanged between them is like [message_len+messagebody]
where the flash open on my owner windows xp system,it works ok,the message sent and recieved is right.
but when I put the flash on a red hat 5 's apache server, try to open it in the web browers, the flash socket send error messages,the message can not be recognized.
at first ,I think is maybe the endian is not the same, at first,I use the littlendian.
so ,I try the bigendian, but this time it's not work even on the local xp system. and from the c++ server ,I can see this time both the local and the remote flash, it's got the same data,but not the same with the flash sent, I think it because of the bigendian .
so the situation is this: I use the littleendian, the flash client works good on the local xp system,ie 7 explorer. but it's not ok if I put it on a red hat 5's apache server. I also try a ror's mongrel server,it's work the same way.... and if i save the flash from the web browser, I found the filesize is not equal with the local flash filesize;
if I use the bigendian,the flash client works bad both the local or the remote... the reason should be the bigendian is not ok for the radhat5 .
so ,anybody can help me ? thanks a lot.