Re: Using GNAT.Sockets with Streams and Byte Swapping



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.

.



Relevant Pages

  • Re: ERROR MESSAGE C00D277F
    ... ....seems to talk about error C00D277F a fair amount...with some fixes. ... Todd ... >> suggestions on how to fix it so I can play my protected content would be ... Prev by Date: ...
    (microsoft.public.windowsmedia.player)
  • Re: Error Nuker
    ... > scans and does a nugatory number of fixes: to get a full fix you have ... Prev by Date: ...
    (comp.mail.misc)
  • Re: Shuttle damage overkill
    ... > The gap filler is out more than is allowed by specs. ... > for them to ignore it when they can possibly fix it AND demonstrate the ... Prev by Date: ...
    (sci.space.policy)
  • Re: Shuttle damage overkill
    ... The gap filler is out more than is allowed by specs. ... for them to ignore it when they can possibly fix it AND demonstrate the ... Prev by Date: ...
    (sci.space.policy)
  • Re: ### Bush & Cheney are traitors! ###
    ... When a person fixes a sports game, ... To fix the facts ... Prev by Date: ...
    (talk.politics.guns)