I didn't see the original question, but by the subject i think i can
piece together what you want. You need to use XDR, It stands for
eXternal Data Representation. It was developed by Sun Microsystems.
XDR allows you to pass structured data over the network in a system
architecture independent way by "encoding" it into a stream in
big endian format. The other end then decodes the stream and stores
it as dictated by the system.
This is most commonly used (do to its ease of use) in RPC since rpcgen
a tool used to develop RPC software does the dirty work for you. It
can be used without RPC though, and picking up some RPC code from
somewhere will provide you with a fair bit of example code.
Hope this helps.
> If I understand your question, you can't really share data areas.
> Assuming your client and server processes are on two machines, there
> is no common resource to share other than the network. You would
> have to syncronize the data structure between process whenever it
> changes. Not pretty but easily doable.
> If the two processes are on the same machine, however, use shared
> memory. That's what it's for.
> Hope this helps.
>--
> ____ __ ___
> / __ \____ __ _____ / |/ /___ ____ _________ ___
> / / / / __ `/ | / / _ \ / /|_/ / __ \/ __ \/ ___/ __ \/ _ \
> / /_/ / /_/ /| |/ / __/ / / / / /_/ / / / / / / /_/ / __/
>/_____/\__,_/ |___/\___/ /_/ /_/\____/_/ /_/_/ \____/\___/
_______________________________________________
| Computer Science, Memorial University |
-----------------------------------------------