Just curious... Why does VNC have a function called Swap16IfLE()? Why not use ntohs()? Or is ntohs equivalent to a Swap16IfBE()? Host computer byte ordering vs canonical network byte ordering is something that the earliest TCP/IP stacks solved and provided routines for... Of course, standard TCP/IP libraries supply both ntohs (Network TO Host Short) and htons (Host TO Network Short), which is kinda silly nowadays, because both functions do exactly the same thing -- reverse the byte order if necessary, and return the input otherwise. Oh, and there is also ntohl and htonl to use instead of Swap32IfLE. Saves having to change those function definitions for each platform. I guess it could be to provide them as #defines to forcibly inline them, though I would expect compilers to do a pretty good job with the standard networking libraries as well. Doesn't really matter, regardless, just struck me as odd. Mac --------------------------------------------------------------------- To unsubscribe, send a message with the line: unsubscribe vnc-list to [EMAIL PROTECTED] See also: http://www.uk.research.att.com/vnc/intouch.html ---------------------------------------------------------------------
