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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f69eb259f3ed2afb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!atl-c03.usenetserver.com!pc03.usenetserver.com!ALLTEL.NET!not-for-mail Date: Mon, 18 Apr 2005 08:51:32 -0500 From: "Marc A. Criley" User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Using GNAT.Sockets References: <1113404846.310840.322920@z14g2000cwz.googlegroups.com> <1113555847.303640.190000@f14g2000cwb.googlegroups.com> <1113814867.251847.285880@o13g2000cwo.googlegroups.com> In-Reply-To: <1113814867.251847.285880@o13g2000cwo.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: X-Complaints-To: abuse@usenetserver.com Organization: UseNetServer.com X-Trace: acede4263bb65a13cf32b15179 Xref: g2news1.google.com comp.lang.ada:10524 Date: 2005-04-18T08:51:32-05:00 List-Id: markp wrote: > Thanks for your reply. It does what I want it to do. I have one other > question. My assumption is that I have to read the data into My_buffer, > which is of a type Stream_Elemet_Array. If there a way to read the data > directly into an Ada record type, as opposed to a Stream_Element_Array? > Otherwise, I will have to read the socket and then copy the bytes into > the record type and act on it there. Is there a way to avoid this extra > copy and go directly to my data type? Take a look at "A Socket-Based Manifestion of Streams" at http://www.sigada.org/ada_letters/june2001/socket_streams.pdf Marc A. Criley