Chapter 7: Problem 5
Use XDR and htonl to encode a 1000 -element array of integers. Measure and compare the performance of each. How do these compare to a simple loop that reads and writes a 1000-element array of integers? Perform the experiment on a computer for which the native byte order is the same as the network byte order, as well as on a computer for which the native byte order and the network byte order are different.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.