🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #376

Re: ntohs? htons?

#376
From: Tor Iver Wilhelmsen (TeamB)
Date: Mon, 20 Oct 2003 06:50
9 lines
1258 bytes
"Chris" <cchuah@tycoint.com> writes:

> I have tried looking for these functions Ntohs (Network To Host
> Short) and htons(Host to Network Short) functions in Java but can't
> find any. Is there a way to implement this function?

They are not necessary: The Java language defines byte ordering in a
way to be the same as network byte ordering. So the byte ordering
problems that those functions seek to fix are nonexistent.
Technical Details
Message-ID: <uwub0e720.fsf@ergo.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail
References: <3f91f19f@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,f2a63a0b29d359c0
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-10-20 00:00:37 PST
Sender: towi@SDSA3850
Newsgroups: borland.public.jbuilder.java.api
Subject: Re: ntohs? htons?
References: <3f91f19f@newsgroups.borland.com>
From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB))
Date: 20 Oct 2003 08:50:47 +0200
Message-ID: <uwub0e720.fsf@ergo.no>
Lines: 9
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
NNTP-Posting-Host: 139.105.7.229
X-Trace: newsgroups.borland.com 1066632647 139.105.7.229 (19 Oct 2003 23:50:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!newsgroups.borland.com!not-for-mail