comp.lang.ada
 help / color / mirror / Atom feed
* Gnat Sockets & Streams
@ 2012-09-15  2:01 Robert Love
  2012-09-15  7:28 ` Simon Wright
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Robert Love @ 2012-09-15  2:01 UTC (permalink / raw)


I've a problem with the Gnat.Sockets that is driving me crazy.  I have 
to use multicast to announce a service is available.

I've looked at the example program given in g-socket.ads and compiled 
in and it runs just as expected.  I've extracted the multicast portion 
and split into two programs and compiled on different machines  and it 
communcates the string stream just as expected.

When I insert this code into my actual program it works differently.  
The string comes over 1 character at at time.  I've looked over the 
code to see that I used the package exactly like the example.  I've had 
coworkers look it over.  We don't see any way the

  String'Output(Channel, "Dummy Data");

can output the data one character at a time.    The Output is in a loop 
and I would expect to see

Dummy Data
Dummy Data
Dummy Data

instead of

D
u
m
m
y

D

by the receiving program.  I've also used tcpdump to see that the 
packet really contains just one character instead of there being a 
problem with the receiving progam.

Is there  any way a stream can be corrupted?  Any settings parameters I 
could compile with that change the behavior?

Any comments appreciated.




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-09-21 20:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-15  2:01 Gnat Sockets & Streams Robert Love
2012-09-15  7:28 ` Simon Wright
2012-09-15 23:14   ` Simon Wright
2012-09-15  7:52 ` Dmitry A. Kazakov
2012-09-15 17:02   ` Simon Wright
2012-09-15 17:26     ` Robert Love
2012-09-15 18:17     ` Dmitry A. Kazakov
2012-09-15 19:27       ` Simon Wright
2012-09-16 13:38 ` gautier_niouzes

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