Re: Serialization in C

"Steve Graegert" <[email protected]>
Newsgroups org.kernel.vger.linux-c-programming
Message-ID <[email protected]>
On Dec 5, 2007 8:18 PM, Brian McQueen <[email protected]> wrote:
> Check out the xdr stuff from Sun's RPC stuff too.

XDR comes to mind first, but it can be very tedious, since you
sometimes have be carefully select between the xdr_reference and
xdr_pointer primitives due to the fact that one operates on
XDR-translated data while the other does not.

Additionally, the developer should get intimately familiar with XDR
first to make use of it because the data structures must be described
properly and many self-written subroutines are needed to facilitate
XDR.  TPL is very intuitive to use and also supports converting the
data to XML back and forth.

Unless you do not need to transfer data between architectures, TPL
wins over XDR.  If native binary representation is not an option XDR
is the way to go.

        \Steve

PS: Please, do not top-post.  Thanks.


> On Dec 5, 2007 9:47 AM, Steve Graegert <[email protected]> wrote:
> > On Dec 5, 2007 6:20 PM, Dinesh <[email protected]> wrote:
> > >
> > >  Hello,
> > >
> > >  I'm using graph and tree represented in linked list structure  in my C
> > > program..
> > >
> > >  I have to save them while running the program to  retrieve later.
> > >
> > >  Is there any C libraries available to serialize  these structures...
> > >
> > >  My search became a vain attempt..  It will be fine if I get some
> > > relevant information..
> >
> > I'd recommend taking a look at TPL which seems to be exactly what
> > you're looking for.
> > Get it from here: http://tpl.sourceforge.net
> >
> >         \Steve
> >
> > --
> >
> > Steve Grägert
> > DigitalEther.de
>
-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.