What is endianness?
Little and big endian are two ways of storing multibyte data-types ( int, float, etc). In little endian machines, last byte of binary representation of the multibyte data-type is stored first. On the other hand, in big endian machines, first byte of binary representation of the multibyte data-type is stored first.
How to check
1 |
|
Network byte order
https://stackoverflow.com/a/997586/13133551
"Network byte order" is Big Endian, and protocols such as TCP use this for integer fields (e.g. port numbers). Functions such as htons and ntohs can be used to do conversion.
The data itself doesn't have any endianness it's entirely application defined.
As we can see from the picture, the endianness of net is Big Endian.