MUD-Dev
mailing list archive

[ Other Periods  | Other mailing lists  | Search  ]

Date:  [ Previous  | Next  ]      Thread:  [ Previous  | Next  ]      Index:  [ Author  | Date  | Thread  ]

[MUD-Dev] [CODE QUESTION] How to encode floats into bytes?




What is the standard way (if there is one) to encode floating
point numbers (double too I guess) into bytes for transport accross
the network.

I'm using c++, on both ends (encode/decode).

It would seem like there would be a method to do this somewhere!

Thanks,
Ben

Ben Greear (greear#cyberhighway,net)  http://www.primenet.com/~greear 
Author of ScryMUD:  mud.primenet.com 4444
http://www.primenet.com/~greear/ScryMUD/scry.html





[ Other Periods  | Other mailing lists  | Search  ]