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,8bbf2dbc48e08e2f X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!attbi_s71.POSTED!53ab2750!not-for-mail From: "Jeffrey R. Carter" Organization: jrcarter at acm dot org User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Question about Streams and UDP sockets using GNAT.Sockets References: <1153215666.455584.201990@m73g2000cwd.googlegroups.com> <1fpj192j49rf4$.ma23qkoukku3.dlg@40tude.net> In-Reply-To: <1fpj192j49rf4$.ma23qkoukku3.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 12.201.97.176 X-Complaints-To: abuse@mchsi.com X-Trace: attbi_s71 1153249643 12.201.97.176 (Tue, 18 Jul 2006 19:07:23 GMT) NNTP-Posting-Date: Tue, 18 Jul 2006 19:07:23 GMT Date: Tue, 18 Jul 2006 19:07:24 GMT Xref: g2news2.google.com comp.lang.ada:5778 Date: 2006-07-18T19:07:24+00:00 List-Id: Dmitry A. Kazakov wrote: > > Don't use String'Write. GNAT implementation treats strings as array so > characters don't coalesce. It is unexpected, but legal. You might wish to > define your own type of the packet and implement a suitable write (and > read) for it. Since the language defines String as an array type, it would be strange to expect anything else. -- Jeff Carter "I'm a lumberjack and I'm OK." Monty Python's Flying Circus 54