Using GNAT.Sockets with Streams and Byte Swapping



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

.



Relevant Pages

  • Re: stop script if dates are missing, edit help...
    ... he wanted the ability to enter the start date in 1/1/2005 format and ... right on column J, which is K, if any of those are missing to print out ... msg box and basically stop and say: make sure the dates in the range ... Prev by Date: ...
    (microsoft.public.excel)
  • Anyone selling poker chips?
    ... Wizards789@xxxxxxxxxxx or aim is Dwillyindabb, msg me soon. ... buyers demand. ... Prev by Date: ...
    (rec.gambling.poker)
  • error 80070026
    ... Media player sent this ... msg, error 80070026. ... Mannix ... Prev by Date: ...
    (microsoft.public.windowsmedia.player)
  • Re: The Grateful Dead came in 2nd.
    ... On Letterman, right after Garcia died, Elton John boasted that he will ... "probably beat the Grateful Dead's MSG record...now." ... Prev by Date: ...
    (rec.music.gdead)
  • Frequent Error on Bootup
    ... msg: Generic Host Process for WIN32 Services Encountered and Needed to Close. ... Prev by Date: ...
    (microsoft.public.windowsxp.basics)