I’m writing a TCP client using boost::asio. I want to send an array of floats in their binary representation. Does boost provide a nice way to convert data to their binary representation for placement it in a boost::array or something?
I have used Qt QDataStream in the past and it worked well; I’m sure boost has something equivalent?
compile
run
server