I need to send a series of floats over a TCP socket.
Firstly, is it safe to assume that most platforms (e.g off the shelf Windows PC/Laptop) and architectures represent floats in the same way (i.e IEEE 754)?
If so, I was thinking of doing something like this:
float a = 29.054; int* b = reinterpret_cast<int*>(&a); //Store in byte array
Would this work?