[ace-users] Big Endian Format

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Tue Jun 12 10:38:27 CDT 2007


Hi Roger,

> I am an ACE user for Simulation software.

Thanks very much for your email.  Please make sure to send all
questions related to TAO or ACE to the ACE mailing list or ACE+TAO
newsgroup, rather than to me directly since I travel frequently and
often don't have ready access to email.  See

http://www.cs.wustl.edu/~schmidt/ACE-mail.html

for more info on how to access these resources.

In addition, to ensure that we have proper version/platform/compiler
information, please make sure you fill out the appropriate problem
report form (PRF), which is in

$ACE_ROOT/PROBLEM-REPORT-FORM
$TAO_ROOT/PROBLEM-REPORT-FORM

or in

$ACE_ROOT/BUG-REPORT-FORM
$TAO_ROOT/BUG-REPORT-FORM

in older versions of ACE+TAO.  Make sure to include this information
when asking any questions about ACE+TAO since otherwise we have to
"guess" what version/platform/compiler/options you've using, which is
very error-prone and slows down our responsiveness.

> For ACE TCP/UDP socket Wrapper, how to set the socket options to meet
> the following requirements?
>  ---> Data transmission shall conform to the "big endian" byte
> convention, that is, item/data consising of 2 or more bytes shall be
> sent with the most significant byte first?
> 
> Can ACE handle this by default? 

Yes, indeed.  This is handled by the ACE_OutputCDR and ACE_InputCDR
classes.  Please see chapter 4 of the C++NPv1 book
<www.cs.wustl.edu/~schmidt/ACE/book1> for details.

Thanks,

        Doug



More information about the Ace-users mailing list