comp.lang.ada
 help / color / mirror / Atom feed
* Sending Variable Length Messages with GNAT.Sockets
@ 2005-05-09 10:11 markp
  2005-05-09 10:39 ` Adrien Plisson
  0 siblings, 1 reply; 18+ messages in thread
From: markp @ 2005-05-09 10:11 UTC (permalink / raw)


I am currently using GNAT.Sockets to send data via streams. A snippet
of my code is is as follows:

.
.
My_Stream_Access := GNAT.Sockets.Stream(Socket => Socket);
.
.
Msg_Types.Msg_Header_Type'Write(
   My_Stream_Access,
   Msg_Type);

This code works fine. It appears GNAT.Sockets works off a message type
in this manner.

My question is: What if the data type "Msg_Type" was a variable length
message? Is there a way to send only "x" bytes for Msg_Type, and not
the entire thing?

Thanks,

Mark




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

end of thread, other threads:[~2005-05-14 11:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-09 10:11 Sending Variable Length Messages with GNAT.Sockets markp
2005-05-09 10:39 ` Adrien Plisson
2005-05-09 11:19   ` markp
2005-05-09 11:50     ` Adrien Plisson
2005-05-09 14:30     ` John B. Matthews
2005-05-09 14:51       ` markp
2005-05-09 18:49         ` Adrien Plisson
2005-05-09 19:16         ` Simon Wright
2005-05-10 15:08           ` markp
2005-05-10 20:34           ` Simon Wright
2005-05-11 13:19             ` Marc A. Criley
2005-05-11 17:14               ` tmoran
2005-05-11 21:05               ` Simon Wright
2005-05-12 10:24                 ` Jacob Sparre Andersen
2005-05-14 11:12                   ` Simon Wright
2005-05-09 11:19   ` Jeff C
2005-05-09 11:35     ` markp
2005-05-09 11:57     ` Adrien Plisson

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