cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
create a PDU containing a double
create a PDU containing a double
Apr 19, 2010 at 3:38pm UTC
ryanHeartfield
(4)
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
Apr 20, 2010 at 3:55am UTC
PanGalactic
(1658)
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.
Apr 20, 2010 at 4:32pm UTC
ryanHeartfield
(4)
ok thanks for the advice!
Topic archived. No new replies allowed.