comp.lang.ada
 help / color / mirror / Atom feed
From: Jacob Sparre Andersen <sparre@nbi.dk>
Subject: Re: Funny thing with GNAT Socket?
Date: Thu, 12 Nov 2009 21:46:40 +0100
Date: 2009-11-12T21:46:40+01:00	[thread overview]
Message-ID: <yged43nlbdb.fsf@hugsarin.sparre-andersen.dk> (raw)
In-Reply-To: a21c3202-38c3-4c31-a4fc-55070a1e33a4@m26g2000yqb.googlegroups.com

mockturtle <framefritti@gmail.com> 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



      parent reply	other threads:[~2009-11-12 20:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-12 19:28 Funny thing with GNAT Socket? mockturtle
2009-11-12 20:32 ` Dmitry A. Kazakov
2009-11-12 20:46 ` Jacob Sparre Andersen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox