$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Rune (rune.sune_at_[hidden])
Date: 2006-03-28 12:00:54
Olaf van der Spek <olafvdspek <at> gmail.com> writes:
>
> Hi,
>
> When reading/writing binary streams, you often need to read/write an
> (unaligned) integer in big, little or native endian. Is there support
> for this in Boost?
Sometimes it is necessary to send floats and doubles as well between different
hosts.
In such cases, should a float be sent as is down the wire, relying on IEEE754
for correct representation at destination, or should it be converted to a null-
terminated ascii-string, or should it...?
It would be really nice if boost.asio or boost.whatever automagically handled
such floating-point primitives in the most efficient yet portable manner.
Rune