home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ibmarc!drake.almaden.ibm.com!drake
- From: drake@drake.almaden.ibm.com (Sam Drake)
- Newsgroups: comp.unix.aix
- Subject: Re: socket problem on RS6000, HELP !.
- Message-ID: <1895@coyote.UUCP>
- Date: 31 Jul 92 18:57:57 GMT
- References: <7749@lee.SEAS.UCLA.EDU>
- Sender: news@ibmarc.UUCP
- Organization: IBM Almaden Research Center
- Lines: 19
- Nntp-Posting-Host: drake.almaden.ibm.com
-
- In article <7749@lee.SEAS.UCLA.EDU> giao@harpo.seas.ucla.edu (Giao N. Tran) writes:
- > The communication is perfect between PS/2's systems !.
- > The same program is compiled on RS6000 and run as a client version,
- > then the data received at the server (PS/2) is always incorrect.
-
- The '6000 is a big endian machine while the PS/2 is little endian. This
- means that the byte representation of integers is different on the two
- systems. The number 12345678 (base 16) is represented thus:
-
- byte 0 1 2 3
- PS/2 78 56 34 12
- 6000 12 34 56 78
-
- You need to transmit binary data in a normalized form ... investigate the
- use of xdr, or look at htonl() and friends.
-
-
- Sam Drake / IBM Almaden Research Center
- Internet: drake@almaden.ibm.com BITNET: DRAKE at ALMADEN
-