comp.lang.ada
 help / color / mirror / Atom feed
From: "Marc A. Criley" <mcqada@earthlink.net>
Subject: Re: How to convert record?
Date: Mon, 29 Oct 2001 13:35:35 GMT
Date: 2001-10-29T13:35:35+00:00	[thread overview]
Message-ID: <3BDD4CDE.848BE3B0@earthlink.net> (raw)
In-Reply-To: 80d2e34.0110281742.1bf0bfa7@posting.google.com

Joseph Kwan wrote:
> 
> So, it must be a constrained type/subtype. This solve my problems.
> Thanks.
> 
> OTOH, I read about 13.13.2 Stream-Oriented Attributes in LRM. Can I
> use 'Read and 'Write or 'Input and 'Output for [this] purpose?
> 
> Can someone please explain in details (an example of the
> implementation will be of great help) how to implement these
> attributes? Please forgive my stupidity because I can't find a good
> examples of such implementation in books and LRM and certainly am
> unable to figure it out.
> 
> Thank you.

You can take a look at my article in Ada Letters--A Socket-Based
Manifestation of Streams
(www.acm.org/sigs/sigada/ada_letters/issues/june2001/socket_streams.pdf)
for a discussion and full working example of how to use the stream
attributes with sockets.  Replace the socket functionality with the
necessary buffering and I/O.

Part of the motivation for the article was to demonstrate how to extend
streams for storage and communication mechanisms other than files, just
as you're asking about.

Marc A. Criley
Senior Staff Engineer
Quadrus Corporation
www.quadruscorp.com



  reply	other threads:[~2001-10-29 13:35 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-21  9:56 How to convert record? Joseph Kwan
2001-10-22 11:30 ` John McCabe
2001-10-25 11:40   ` Joseph Kwan
2001-10-25 12:38     ` sk
2001-10-25 17:12       ` Jeffrey L. Susanj
2001-10-25 12:48     ` David C. Hoos
2001-10-29  1:42       ` Joseph Kwan
2001-10-29 13:35         ` Marc A. Criley [this message]
2001-10-25 12:48     ` Marc A. Criley
2001-10-25 12:54       ` sk
2001-10-25 15:41         ` Ted Dennison
2001-10-26  3:21           ` Smark
2001-10-26  5:45             ` James Rogers
2001-10-26 17:46               ` Smark
2001-10-26 14:30             ` Ted Dennison
2001-10-26 17:42               ` Smark
2001-10-26 20:02                 ` Ted Dennison
2001-10-26 23:10             ` Jeffrey Carter
  -- strict thread matches above, loose matches on Subject: below --
2001-10-29 18:16 Beard, Frank
2001-10-30  1:17 ` Adrian Hoe
2001-10-30 19:05 Beard, Frank
2001-10-31  4:10 ` Adrian Hoe
2001-10-31 19:40 Beard, Frank
2001-11-01  2:13 ` Adrian Hoe
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox