comp.lang.ada
 help / color / mirror / Atom feed
* Using GNAT.Sockets
@ 2005-04-13 15:07 markwork66
  2005-04-13 15:43 ` Duncan Sands
  2005-04-14 14:45 ` Bob Spooner
  0 siblings, 2 replies; 24+ messages in thread
From: markwork66 @ 2005-04-13 15:07 UTC (permalink / raw)


We are just converting to GNAT and I am used to the traditional TCP
send/receive using an address and byte count to send/receive data. I've
used the Receive_Socket command in GNAT.Sockets and I am having trouble
receiving all the bytes. The "Last" parameter is not always equal to
the size of the message I'm sending and I don't see a way to call back
into the procedure to receive the rest of the bytes.

Further, we have many different sized messages and, from my little
playing with GNAT sockets, it seemed the "Item" parameter is the only
way to specify the number of bytes you want to receive. So, does that
mean I would have to declare an array of bytes (the "Item" parameter)
for all of my messages and the then do an unchecked conversion or a
copy_bytes routine to get the data into my Ada message data type?

Any help anybody could provide would be most appreciated.




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

end of thread, other threads:[~2005-04-19 19:08 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-13 15:07 Using GNAT.Sockets markwork66
2005-04-13 15:43 ` Duncan Sands
2005-04-15  9:04   ` markp
2005-04-15  9:25     ` Duncan Sands
2005-04-18  9:01       ` markp
2005-04-18 13:23         ` Michael Paus
2005-04-18 14:32           ` markp
2005-04-18 15:14             ` Adrien Plisson
2005-04-18 15:35               ` markp
2005-04-18 15:48                 ` Adrien Plisson
2005-04-18 17:06                   ` markp
2005-04-18 18:23                     ` markp
2005-04-18 20:45                     ` Eric Jacoboni
2005-04-18 21:30                       ` Pascal Obry
2005-04-18 23:00                         ` Eric Jacoboni
2005-04-19  7:04                           ` Pascal Obry
2005-04-19 17:36                           ` Björn Lundin
2005-04-19 19:08                             ` Eric Jacoboni
2005-04-18 13:51         ` Marc A. Criley
2005-04-14 14:45 ` Bob Spooner
2005-04-15  9:06   ` markp
2005-04-15 11:47     ` Michael Paus
2005-04-15 14:07       ` Bob Spooner
2005-04-17 15:35         ` Michael Paus

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