From: "Steve Graegert" <graegerts@gmail.com>
To: Brian McQueen <mcqueenorama@gmail.com>
Cc: Dinesh <tdblinux@yahoo.co.in>, linux-c-programming@vger.kernel.org
Subject: Re: Serialization in C
Date: Wed, 5 Dec 2007 20:47:32 +0100 [thread overview]
Message-ID: <6a00c8d50712051147t38dbafw335bb4744823f31@mail.gmail.com> (raw)
In-Reply-To: <5b3fa8f0712051118k97447b7n6026c19b0d5a4c46@mail.gmail.com>
On Dec 5, 2007 8:18 PM, Brian McQueen <mcqueenorama@gmail.com> 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 <graegerts@gmail.com> wrote:
> > On Dec 5, 2007 6:20 PM, Dinesh <tdblinux@yahoo.co.in> 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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
prev parent reply other threads:[~2007-12-05 19:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-05 17:20 Serialization in C Dinesh
2007-12-05 17:47 ` Steve Graegert
2007-12-05 19:18 ` Brian McQueen
2007-12-05 19:47 ` Steve Graegert [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6a00c8d50712051147t38dbafw335bb4744823f31@mail.gmail.com \
--to=graegerts@gmail.com \
--cc=linux-c-programming@vger.kernel.org \
--cc=mcqueenorama@gmail.com \
--cc=tdblinux@yahoo.co.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).