create a PDU containing a double

Hi,

I am building a networked game and need to send a double variable to a server client dialog.

I am using tcp/ip protocol, does anyone now how to create a PDU containing a double?

Any help would be great!

Ryan
Here are some options off the top of my head:

EEE-754 interchange format: http://en.wikipedia.org/wiki/IEEE_754-2008#Interchange_formats
CORBA's representation (see GIOP CDR): http://en.wikipedia.org/wiki/General_Inter-ORB_Protocol
Boost Serialization library

Hell, just use CORBA (OmniORB, Mico, etc) for your networking protocol and save yourself the hassle of writing the marshalling code.
ok thanks for the advice!
Topic archived. No new replies allowed.