From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,74592f8704ca8a3f X-Google-Attributes: gid103376,public From: "David C. Hoos" Subject: Re: Ada.Streams Date: 1998/12/11 Message-ID: <74rhq6$104@hobbes.crc.com>#1/1 X-Deja-AN: 421234297 References: <74pdkb$22v$1@nnrp1.dejanews.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: Coleman Research Corporation Newsgroups: comp.lang.ada Date: 1998-12-11T00:00:00+00:00 List-Id: krreagan@yahoo.com wrote in message <74pdkb$22v$1@nnrp1.dejanews.com>... >We are implementing a message passing mechanism with two nodes on an isolated >network and would like to use Ada.Streams to pass the messages. The >LRM/Rational are not very detailed on the use of streams (Also Cohen is very >sparse on this subject). > >We need to pack a message (Ada record) in to a stream and pass this through >our system (and maybe across the RS-232 serial link), when it gets to it's >destination we need to unpack it into the original data structure. Streams >seem to be the way to go but the documentation isn't very good. Any help >(preferably in the form of a small example) would be much appreciated. > You may find a couple of examples at my web site instructive, viz.: ftp://ftp.ada95.com/pub/tagged_types.tgz ftp://ftp.ada95.com/pub/pet_store.tgz