Boost logo

Boost Users :

Subject: [Boost-users] From Big-endian to Little-endian.
From: Mauro Ziliani (mauro_at_[hidden])
Date: 2013-07-15 05:23:46


Hi all.
This is my first post.
I'm working with boost::asio::ip::tcp to dialogate with a peripheral
which send frames grouped in words (16 bit values).
The peripheral uses a big-endian byte-order, while the host uses a
little-endian byte-order.
Is there some template which makes the swap automatically?

Best regards,
   Mauro


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net