Article View: borland.public.jbuilder.java.api
Article #375Re: ntohs? htons?
From: John McGrath [TeamB]
Date: Sun, 19 Oct 2003 22:55
Date: Sun, 19 Oct 2003 22:55
19 lines
1461 bytes
1461 bytes
On 10/18/2003 at 10:06:55 PM, Chris wrote:
> 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?
Can you be more specific about what you are trying to do?
When you write numeric values to streams, the standard Java classes
always use network order, so I doubt that you really need these methods.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3f931655@newsgroups.borland.com>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-mailReferences:
<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-19 16:03:30 PST From: "John McGrath [TeamB]" <ng-b@JPMcGrath.net> Subject: Re: ntohs? htons? Newsgroups: borland.public.jbuilder.java.api References: <3f91f19f@newsgroups.borland.com> User-Agent: XanaNews/1.15.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 NNTP-Posting-Host: 141.151.10.237 Message-ID: <3f931655@newsgroups.borland.com> Date: 19 Oct 2003 15:55:17 -0700 X-Trace: newsgroups.borland.com 1066604117 141.151.10.237 (19 Oct 2003 15:55:17 -0700) Lines: 19 X-Authenticated-User: jpmcgrath 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