Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Portable Endianness . . . . . . . . (was Re: Portability of Misaligned Data Access)
- Date: Sun, 30 Jul 2006 09:25:14 +0900
- From: "Josh Glover" <jmglov@example.com>
- Subject: Re: [tlug] Portable Endianness . . . . . . . . (was Re: Portability of Misaligned Data Access)
- References: <20060726125907.GH5111@example.com> <87ejw8corz.fsf@example.com> <20060726164125.4959ce4e.jep200404@example.com> <Pine.BSF.4.58.0607261946521.68592@example.com> <87r707bv1o.fsf@example.com> <Pine.BSF.4.58.0607270219370.17463@example.com> <87ac6vbd3l.fsf@example.com> <30ce84360607280348g14ca61degac95f2fbb5ebdc85@example.com> <d8fcc0800607290524l778903f0r60d32efeb01761da@example.com> <20060729101414.2eead465.jep200404@example.com>
On 29/07/06, Jim <jep200404@example.com> wrote:Josh Glover wrote: > How about just always using htons(3) and htonl(3) to get compatible byte orders? I do so for data communicated little-endian. For data that is communicated big-endian, I must write different routines, albeit similarly inspired.Ah, I was being a bit short-sighted. I was imagining situations where you are communicating data from a program you wrote on one machine to a program you wrote (maybe the same one?) on another machine. I failed to consider the case where you must respect an existing protocol that you have no control over. -Josh
- References:
- [tlug] issues with format of double (or IEEE754)
- From: Michal Hajek
- Re: [tlug] issues with format of double (or IEEE754)
- From: Stephen J. Turnbull
- [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- From: Jim
- Re: [tlug] Portability of Misaligned Data Access . . . . . . . (was Re: issues with format of double (or IEEE754))
- From: Joe Larabell
- Re: [tlug] Portability of Misaligned Data Access . . . . . . .
- From: Stephen J. Turnbull
- Re: [tlug] Portability of Misaligned Data Access . . . . . . .
- From: Joe Larabell
- Re: [tlug] Portability of Misaligned Data Access . . . . . . .
- From: Stephen J. Turnbull
- Re: [tlug] Portability of Misaligned Data Access . . . . . . .
- From: Ian Wells
- Re: [tlug] Portability of Misaligned Data Access . . . . . . .
- From: Josh Glover
- [tlug] Portable Endianness . . . . . . . . (was Re: Portability of Misaligned Data Access)
- From: Jim
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] FireFox Update (1.5.0.5)
- Next by Date: Re: [tlug] presentation material for Debian on MacBook
- Previous by thread: [tlug] Portable Endianness . . . . . . . . (was Re: Portability of Misaligned Data Access)
- Next by thread: [tlug] Step Aside Kernighan and Ritchie: Bjarne Rules! . . . . . . . . (was Re: Portability of Misaligned Data Access)
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links