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!news3.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!skynet.be!newspost001!tjb!not-for-mail Date: Mon, 18 Apr 2005 17:14:26 +0200 From: Adrien Plisson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: fr-fr, fr-be, fr, 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> <1113834734.937407.145410@z14g2000cwz.googlegroups.com> In-Reply-To: <1113834734.937407.145410@z14g2000cwz.googlegroups.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <4263ced3$0$2275$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: ce3a7f1f.news.skynet.be X-Trace: 1113837267 news.skynet.be 2275 81.243.48.178:4147 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:10527 Date: 2005-04-18T17:14:26+02:00 List-Id: markp wrote: > type Data_Type is array(1..800) of Byte; > Data : Data_Type := (others => 0); > .. > .. > > .. > .. > After successful connection I did the following: > > My_Stream_Access := GNAT.Sockets.Stream(Socket => Socket); > > Then, I tried to read the socket as follows: > > Data := Data_Type'Input(My_Stream_Access); > > The data I got was incorrect. What di dI do wrong? who sent the 800 bytes you read on the network ? is it an Ada application using streams too (and specifically Data_Type'Output)? -- rien