On Thu, Apr 17, 2008 at 10:31 AM, <[EMAIL PROTECTED]> wrote: [...] > Meaning, sharing files between ppc macs and intel machines doesnt work yet. > Sooo, obviously i need to swap the bytes, when needed... Now im wondering > about the best way to do this.
Solution 1) Use human readable plain-text. Solution 2) There are 'host to network' and 'network to host' functions in the socket libraries that would transparently take care of the endianess problem for you without you having to worry about it. (In the cases where the host and network orders are the same they are no-ops.) Look for htonl() in your compilers help files. -- PJH http://shabbleland.myminicity.com/tra
