From: "Marc A. Criley" <marc.a.criley@lmco.com>
Subject: Re: Overlay allowability
Date: 2000/05/10
Date: 2000-05-10T16:21:38+00:00 [thread overview]
Message-ID: <39198FC4.62382ECE@lmco.com> (raw)
In-Reply-To: 8f9npd$pep$1@nnrp1.deja.com
Okay, if there's a simple answer to this I'm going to look really dumb
for asking...but I'll take that chance :-)
My goal has been to serialize an arbitrary object (the type of which is
provided as a generic formal parameter) into a Stream_Element_Array for
use with the AdaSockets package.
I've been all over the RM95 looking for a nice, clean way to do this,
and have not been able to find one. It appears then to come down to
working with Unchecked_Conversion or the 'Address overlay approach (the
latter of which was provided as the example in my original posting).
If there's a straightforward way to accomplish what I'm _really_ trying
to do, I would very much like to hear it! And performance does matter,
since I want to minimize socket blocking.
Oh, and to forestall the "Why not use the DSA?" question, the answer is
that the required post-processing associated with GLADE just won't fly
with clients, so I need to use the basic client/server model.
Marc A. Criley
Ted Dennison wrote:
>
> In article <39184D91.13BA15B4@Raytheon.com>,
> "Samuel T. Harris" <samuel_t_harris@Raytheon.com> wrote:
>
> > problems across compiler implementations. It is rare that
> > such interfacing code deals with unconstrainted arrays
> > or polymorphic variant records. Usually just run-of-the-mill
> > scalars, static records, and constrainted arrays.
>
> The typical use I've seen of it (UC-ing addresses into object pointers)
> is in converting random data objects into arays of bytes. Since the base
> type for one side is typically an unconstrained array of bytes, I think
> this is quite likely to be an issue.
>
> Usually this is done to convert some nice user data structure into
> something an entity outside of Ada (such as an OS call) can deal with.
> Just about any other use is going to be a hack around a badly-chosen
> type. Thus the Right Thing would be to redesign the type.
>
> --
> T.E.D.
>
> http://www.telepath.com/~dennison/Ted/TED.html
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
next prev parent reply other threads:[~2000-05-10 0:00 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-01 0:00 Overlay allowability Marc A. Criley
2000-05-01 0:00 ` tmoran
2000-05-01 0:00 ` Tucker Taft
2000-05-01 0:00 ` mark_biggar
2000-05-01 0:00 ` Keith Thompson
2000-05-08 0:00 ` Tucker Taft
2000-05-03 0:00 ` Robert I. Eachus
2000-05-01 0:00 ` Ted Dennison
2000-05-03 0:00 ` Samuel T. Harris
2000-05-03 0:00 ` Ted Dennison
2000-05-03 0:00 ` Robert A Duff
2000-05-04 0:00 ` Robert Dewar
2000-05-08 0:00 ` Samuel T. Harris
2000-05-08 0:00 ` Robert Dewar
2000-05-09 0:00 ` Samuel T. Harris
2000-05-09 0:00 ` Ted Dennison
2000-05-10 0:00 ` Marc A. Criley [this message]
2000-05-11 0:00 ` tmoran
2000-05-12 0:00 ` tmoran
2000-05-02 0:00 ` Robert I. Eachus
2000-05-03 0:00 ` Marc A. Criley
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox