Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: "markp" <markwork66@xxxxxxxxx>
- Date: 26 May 2005 04:35:18 -0700
We found the answer to our problem. We have types such as
type x is range 1..5;
We then make records including these types. In the rep specs, we define
them to be 32 bits. Apparently, GNAT ignores the rep spec when doing
the 'Write, so we are not sending the correct number of bits. The fix
is:
type x is range 1..5;
for x'size use 32;
This fixes our problem.
Thanks very much for your help.
.
- Follow-Ups:
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: Simon Wright
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: Pascal Obry
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- References:
- Using GNAT.Sockets with Streams and Byte Swapping
- From: markp
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: Simon Wright
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: markp
- Re: Using GNAT.Sockets with Streams and Byte Swapping
- From: Duncan Sands
- Using GNAT.Sockets with Streams and Byte Swapping
- Prev by Date: Re: Using GNAT.Sockets with Streams and Byte Swapping
- Next by Date: Re: memory management
- Previous by thread: Re: Using GNAT.Sockets with Streams and Byte Swapping
- Next by thread: Re: Using GNAT.Sockets with Streams and Byte Swapping
- Index(es):
Relevant Pages
|