A student writes a client and a server using sockets. The student sends 32-bit integer data between the client and server, but forgets to use the htonl and ntohl calls. Surprisingly, the program works fine for all integers.
a. Describe the conditions under which this could occur.
b. Under what conditions would it not be possible?
c. Suppose the student tried to fix this problem, but used htonl where ntohl should have been used. Under what conditions could this work?