• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: why does this code NOT work on macbookpro?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why does this code NOT work on macbookpro?


  • Subject: Re: why does this code NOT work on macbookpro?
  • From: "Justin C. Walker" <email@hidden>
  • Date: Sun, 17 Sep 2006 12:41:21 -0700


On Sep 17, 2006, at 11:10 , Henri Asseily wrote:


On Sep 17, 2006, at 6:02 PM, Clark Cox wrote:

You need some htons calls in there (remember that network order is
big-endian). See:

man byteorder

x-man-page://byteorder


If you know that client and server have the same endianness, it works.
If you're not sure, you need to convert everything to network- endian and back.
Network-endian is defined to be big-endian, so on PPC these are no- ops.

This can only be true if you are very lucky. The receiving end will likely assume you are sending in network order, and swap bytes around.


Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
If you're not confused,
You're not paying attention
--------



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: why does this code NOT work on macbookpro?
      • From: Jonas Maebe <email@hidden>
References: 
 >why does this code NOT work on macbookpro? (From: Perry Winkel <email@hidden>)
 >Re: why does this code NOT work on macbookpro? (From: "Clark Cox" <email@hidden>)
 >Re: why does this code NOT work on macbookpro? (From: Henri Asseily <email@hidden>)

  • Prev by Date: Re: why does this code NOT work on macbookpro?
  • Next by Date: Re: why does this code NOT work on macbookpro?
  • Previous by thread: Re: why does this code NOT work on macbookpro? SOLVED
  • Next by thread: Re: why does this code NOT work on macbookpro?
  • Index(es):
    • Date
    • Thread