-----Original Message-----
From: Ben Combee [mailto:[EMAIL PROTECTED]]
Sent: Monday, 7 January 2002 4:13 PM
To: Palm Developer Forum
Subject: Re: Palm and ARM (Was: PL/I for Palm ?)


> See NetHToNL, NetHToNS -- they're already part of the Palm OS API, since
> version 2.0.

Hi Ben

The question is how far we can rely on NetLib.

Say, I  am going to use my Palm for HotSync and IR, but not for networking,
so I can re-program ROM to replace NetLib by BigClock or so :-) while all
net-independent apps should be guaranteed to work.

As far as I remember Linux moved htons etc from arpa headers, while actual
implementation was never a part of a separate library (like winsock for
Windows). This really makes sense:  if I just want to read a Mac/Amiga file
why should I require net support ?  The same discipline should apply to
PalmOS, where this is even more crucial.

A simple solution: move NetHToNL to kernel and name it say HtoBE (leave name
NetHToNL in NetLib as a shortcut for portability), have a macro: for m68k -
do nothing, for ARM call HToBE.

Michael

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to