Using GNAT.Sockets with Streams and Byte Swapping
- From: "markp" <markwork66@xxxxxxxxx>
- Date: 25 May 2005 02:48:06 -0700
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
.
- Follow-Ups:
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: Simon Wright
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- Prev by Date: Re: Calling C++ procs from Ada - linkage problem solved
- Next by Date: Re: Gnat STORAGE_ERROR
- Previous by thread: Re: Calling C++ procs from Ada - linkage problem solved
- Next by thread: Re: Using GNAT.Sockets with Streams and Byte Swapping
- Index(es):
Relevant Pages
|