next up previous contents index
Next: Checksum Up: Utility Routines Previous: xError

Byte Order: ntohs, ntohl, htons, and htonl

         

The byte order functions are the same as the Unix functions.

 
		u_short 		ntohs(u_short n)

u_long ntohl(u_long n)

u_short htons(u_short n)

u_long htonl(u_long n)



Larry Peterson
Wed Jan 10 10:40:08 MST 1996