help-flex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: htonl() htons()


From: John Millaway
Subject: Re: htonl() htons()
Date: Mon, 21 Oct 2002 19:56:48 -0400 (EDT)

> I tried to compile this using my rather old CW pro 5 compiler for MacOS pre-X:
>
> What are
>   htonl() in yytbl_write32()
>   htons() in yytbl_write16()
> supposed to do (both in tables.c)? -- They have no prototypes and so not
> appear elsewhere in the sources.

They convert integers in host byte-order to network byte-order. (This
way, the serialized DFA tables are portable.) On Intel platforms, some
byte rearranging occurs. On other platforms, these are no-ops.

htonl="host to network long"
htons="... short".






reply via email to

[Prev in Thread] Current Thread [Next in Thread]