4. Using library functions like htonl and Unix’s bcopy orWindows’
CopyMemory, implement a routine that generates the same
on-the-wire representation of the structures given in Exercise 1 as
XDR does. If possible, compare the performance of your
“by-hand” encoder/decoder with the corresponding XDR routines.