nanogui: Newbie question--passing events between programs
Subject:
Re: [nanogui] RE: Newbie question--passing events between program s
From:
Alex Holden ####@####.####
Date:
31 Jan 2002 01:46:06 -0000
Message-Id: <3C58A104.1000705@linuxhacker.org>
Greg Haerr wrote:
> Looks good. Do you think we need anything special to store
> longwords rather than just string data? If we store longs as
> &long, sizeof(long) it'll work, but the data will be client-processor-endian
> dependent, that probably doesn't matter...
I don't think we'll ever support different endian client and server, do
you? It would require breaking the API in several places and adding an
awful lot of support code to keep track of the type of every piece of
data that goes over the network so that it can be byte swapped if
necessary. As long as we stick with the requirement that the client and
server have the same byte order the server doesn't need to know what
type of data is stored in a property, just how many bytes long it is.
--
------------ Alex Holden - http://www.linuxhacker.org ------------
If it doesn't work, you're not hitting it with a big enough hammer