Article View: borland.public.cppbuilder.nativeapi
Article #4198Re: big endian
From: Boba
Date: Fri, 03 Mar 2006 16:41
Date: Fri, 03 Mar 2006 16:41
20 lines
1656 bytes
1656 bytes
"Alan Bellingham" <alanb@episys.com> wrote in message
news:gife025lrvhio05ru5aqo85pt38r80b7pf@4ax.com...
> ...
> I'm not sure what you're after, but you might find that htonl(),
> htons(), ntohl() and ntohs() are what you're after. They convert
> unsigned shorts and unsigned longs between machine native ('host')
order
> and the tcp/ip ('network') order.
>
> (See winsock2.h)
>
> There are also similar functions with the WSA prefix, but which are
more
> complicated and which don't, on first sight, do anything extra.
>
> Alan Bellingham
> --
> ACCU Conference 2006 - 19-22 April, Randolph Hotel, Oxford, UK
Yhank you, Alan. I need'em for a project on font designing. Turns
out font files use motorola convention. How about 2.14 floats?
Technical Details
Message-ID:
<44085438$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44073bf4$1@newsgroups.borland.com> <gife025lrvhio05ru5aqo85pt38r80b7pf@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,218aa917182c0f21 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Boba" <Boba@somewhere.world> Newsgroups: borland.public.cppbuilder.nativeapi References: <44073bf4$1@newsgroups.borland.com> <gife025lrvhio05ru5aqo85pt38r80b7pf@4ax.com> Subject: Re: big endian Date: Fri, 3 Mar 2006 08:41:08 -0800 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 24.238.236.200 Message-ID: <44085438$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1141396536 24.238.236.200 (3 Mar 2006 06:35:36 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail