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: a07f3367d7,ca576e395f501a7a X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!u-picardie.fr!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Funny thing with GNAT Socket? Date: Thu, 12 Nov 2009 21:46:40 +0100 Organization: Jacob Sparre Andersen Message-ID: References: NNTP-Posting-Host: 95.209.250.64.bredband.3.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: munin.nbi.dk 1258058801 4394 95.209.250.64 (12 Nov 2009 20:46:41 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 12 Nov 2009 20:46:41 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:6JZjdkNrDlZYnd3Cms+kShGo+V4= Xref: g2news1.google.com comp.lang.ada:8075 Date: 2009-11-12T21:46:40+01:00 List-Id: mockturtle writes: > String'Write(Basic_Stream, Query); > If I compile the code at home and check the traffic with tcpdump, I > can see that each strings is transmited in a packet by itself. > > If I compile the code above at work, I see that the strings are > transmitted one char per packet (i.e., first a packet with "G", then a > packet with "E", and so on...) > Ideas? I think what you see is simply different implementations of the "Write" attribute for arrays. You can work around the difference by supplying your own implementation of the "Write" attribute for strings, which calls "Ada.Streams.Write" with a storage element array overlayed with the complete string to be written. Greetings, Jacob -- �Verbing weirds language.� -- Calvin