Re: WCCP v2 implementation thoughts.

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 20 Jul 2001 15:48:12 +0200

Joe Cooper wrote:

> Does htons and htonl handle order suitably?

It is what they are meant to be used for.

htons == Host TO Network Short

htonl == Host TO Network Long

ntohs == Network TO Host Short

ntohl == Network TO Host Long

In this context short == 16 bit, long == 32 bit.

--
Henrik
Received on Fri Jul 20 2001 - 08:00:25 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:07 MST