Mac used the opposite byte order to Windows. But is that still true for the iPhone? Since I am doing TCP-IP(WiFi) from Windows to an iPhone, what does the byte conversion mapping look like?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Network byte ordering (I mean IP, and therefore TCP too) is always big-endian: http://en.wikipedia.org/wiki/Endianness#Endianness_in_networking iPhone, like Windows, is little-endian: iPhone platform: endianness (detection & swapping) You have to take byte-ordering into account only if you analyze TCP/IP packet headers; packet payload will arrive in the same byte ordering, as it was sent.