comp.lang.ada
 help / color / mirror / Atom feed
From: tmoran@acm.org
Subject: Re: gnat sockets problem
Date: Sun, 30 May 2004 02:30:43 GMT
Date: 2004-05-30T02:30:43+00:00	[thread overview]
Message-ID: <nHbuc.20987$Ly.6111@attbi_s01> (raw)
In-Reply-To: 4d01ad29.0405291608.6d71cd4@posting.google.com

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

>String'Output (Channel,"����getstatus");
  In the definition of 'Output, ARM 13.13.2(21) says
"S'Output writes the value of Item to Stream, including any bounds or
discriminants."  So you are probably sending 4 bytes containing the
integer 1 (the lower bound of the string you are sending), then the
integer 13 (the upper bound), followed the 13 bytes you think you are
sending.  Similarly 'Input expects to read the bounds, then the
data.  Using 'Write instead of 'Output will probably solve the sending
problem, but S'Read is a procedure, not a function, since YOU will have
to supply the bounds, which presumably you can get from the recv (or
whatever gnat.sockets uses for datagram input).



  reply	other threads:[~2004-05-30  2:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-30  0:08 gnat sockets problem wave
2004-05-30  2:30 ` tmoran [this message]
2004-05-30 11:06 ` Simon Wright
replies disabled

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