Skip to main content
GameDev.net gamedev.net
🔒 Locked

Can I send a float from one Machine to another as Raw Bytes?

Started by hiigara Feb 3, 2010 at 9:53 PM 1 replies 900+ views
Original Post
hiigara
hiigara
Assuming they are both x86 Processors. But one is Linux and the other Windows XP. I would hate having to convert float to ascii and then back.
Atrix256
Atrix256
Yeah totally fine, it's just when you go from a processor that is one endian and send to another that you have to worry.

there is something called "network byte order" that you can use for all your communications, and then put everything into the right byte order on the client side.

but meh, yeah for your purposes it's fine to just send it raw yep.

If you want to learn more about this stuff try googling these terms:

Big endian
Little endian
network byte order

Good luck!
hiigara
hiigara
Thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.