I want to connect a midp device (java) with a server written in c#. During tests I noticed that the writeInt method of the 2 languages differs. At least the way the data is sent over the network is different. I used a tcp sniffer to test this (sent int number '14'): -----------------(java)------------------------------ OUT: 4 bytes. 0000 00 00 00 0E -----------------(c#)-------------------------------- OUT: 4 bytes. 0000 0E 00 00 00
Can anyone explain this difference. Shouldn't all programs send data over the network in 'network byte order'? Which programming language uses the right byte order? How can I accomplish network portability at all? Note, I tested local. Server and client (emulator) run on the same machine. Regards, Claus Klammer You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.