home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] Sockets - need concept only.

  • Subject: Re: [OCLUG-Tech] Sockets - need concept only.
  • From: "S. Zachariah Sprackett" <zac [ at ] sprackett [ dot ] com>
  • Date: Wed, 10 Aug 2005 12:26:53 -0400
On 8/10/2005 9:04 AM, Charles MacDonald wrote:
> Is the idea based on portability.  Getting two different processes to
> share memory might end up being architecture specific, but a socket is a
> socket wither the two processes are running on intel or Z360, and even
> if one process is running on each!

Binary goop and structures you send over a socket is probably not
portable across all arches unless you have taken specific precautions in
your protocol implementation to enforce sending of data in network order
and then in your application to convert received data to host order.