Re: i386 long Vs alpha long: htons/ntohs question.

From: Matti Aarnio (matti.aarnio@sonera.fi)
Date: Tue Jan 25 2000 - 18:22:27 EST


On Thu, Jan 27, 2000 at 07:36:43AM +0100, Gigi Sullivan wrote:
> Hello there to all :)
>
> Maybe this could be a newbie question, but I never though at
> this scenario before yestarday and I cannot try it to be sure,
> so ... I'm asking here :)
>
> Let's consider this normal little data transfer between an
> alpha architecture machine and an i386 one.
...

   Short-circuiting it all:
                In NETWORK the 'long' is from 32-bit era and is ALWAYS
                32 bits. Thus htonl() handles 32 bit values, and htons()
                handles 16 bit values. Machine native 'long' size does
                not step into play in this.

....
> Could someone give me other infos ?
> Thx a lot and ... Have a nice day/night ... well whatever :))
>
>
> bye bye
> -- gg sullivan
> --
> Lorenzo Cavallaro `Gigi Sullivan' <sullivan@sikurezza.org> -- ITALY

/Matti Aarnio <matti.aarnio@sonera.fi>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu



This archive was generated by hypermail 2b29 : Mon Jan 31 2000 - 21:00:32 EST