On Sat, Jan 26, 2002 at 04:39:05AM +0100, Marco Pantaleoni wrote:
> You should really encode/decode your messages by manipulating
> sequences of bytes / words / dwords as needed.

Remember also that when you encode/decode words and dwords in a way
that is intended to be portable between architectures, you have to
handle endianness. For example you can decide to store (d)words in
network byte order (big endian - most significant byte first, as used
in m68k and Palm), or in little endian (least significant byte first,
as used in x86, ...)

Marco

-- 
========================================================================
Marco Pantaleoni                                  [EMAIL PROTECTED]
Padova, Italy                                              [EMAIL PROTECTED]
elastiC language developer                   http://www.elasticworld.org

-- 
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