comp.lang.ada
 help / color / mirror / Atom feed
* Using GNAT.Sockets with Streams and Byte Swapping
@ 2005-05-25  9:48 markp
  2005-05-26  6:00 ` Simon Wright
  0 siblings, 1 reply; 10+ messages in thread
From: markp @ 2005-05-25  9:48 UTC (permalink / raw)


I am having a problem using GNAT.socket with streams. I can create a
stream easily and send data as follows:

Msg_Type'Write(
   My_Stream_Access,
   Msg);

This will work fine of both machines are the same "endian". However, if
I need to swap bytes on the variable Msg before I send, I get garbled
data on the other end.

Is there a problem with swapping bytes before the call to 'Write?

Thanks




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

end of thread, other threads:[~2005-05-27  6:38 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-25  9:48 Using GNAT.Sockets with Streams and Byte Swapping markp
2005-05-26  6:00 ` Simon Wright
2005-05-26  9:28   ` markp
2005-05-26  9:50     ` Alex R. Mosteo
2005-05-26 10:01     ` Duncan Sands
2005-05-26 11:35       ` markp
2005-05-26 18:51         ` Pascal Obry
2005-05-26 20:29         ` Simon Wright
2005-05-26 21:02           ` Florian Weimer
2005-05-27  6:38             ` Vinzent 'Gadget' Hoefler

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