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 Path: g2news1.google.com!news3.google.com!news.glorb.com!news.agarik.com!skynet.be!skynet.be!newspost001!tjb!not-for-mail Date: Mon, 18 Apr 2005 17:48:12 +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> <4263ced3$0$2275$ba620e4c@news.skynet.be> <1113838500.614450.176530@l41g2000cwc.googlegroups.com> In-Reply-To: <1113838500.614450.176530@l41g2000cwc.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Message-ID: <4263d6bc$0$1407$ba620e4c@news.skynet.be> Organization: -= Belgacom Usenet Service =- NNTP-Posting-Host: ce3a7f1f.news.skynet.be X-Trace: 1113839292 news.skynet.be 1407 81.243.48.178:3682 X-Complaints-To: usenet-abuse@skynet.be Xref: g2news1.google.com comp.lang.ada:10529 Date: 2005-04-18T17:48:12+02:00 List-Id: markp wrote: > No, >=20 > It is an Ada program that does not use streams. It uses simply > address/byte count passed to the TCP. I'm guessing by your answer it > must use streams also. I don't have control over the other side, so, > does this mean I will not be able to use streams on my side? >=20 > Mark the 'Input attribute, when used on an array type, first tries to read=20 the bounds of the array (ARM95 13.13.2 =A726). those bounds are=20 definitely NOT part of the data received, since the sender did not use=20 streams, and that may explain the corruption you encountered (you are=20 lucky: on fr.comp.lang.ada, another poster got a Storage_Error). the solution is: - either use 'Read and 'Write instead of 'Input and 'Output - or rewrite the sender so that it uses 'Input and 'Output. you should read ARM95 13.13.2 to understand what data are placed on=20 the stream when using stream attributes. --=20 rien