If you transfer binary data between two machines with a different endianess, you may have to worry.
The network socket will simply send data unchanged. If other machines assume that the bytes sent are in a specific order, you need to do this.
If you transmit data in a known format, for example, an image, then in general the image has a header to show in which order it was written, and the reader / writer library will process it. If you are inventing your own binary format, then this is for you. You can also consider the size, how many bytes are int on another machine?
The good news is, most computers are Intel, and for most applications less data will be downloaded in ascii format.
Martin beckett
source share