NOTE: I know that this has been asked many times before, but none of the questions have had a link to a concrete, portable, maintained library for this.
I need a C or C++ library that implements Python/Ruby/Perl like pack
/unpack
functions. Does such a library exist?
EDIT: Because the data I am sending is simple, I have decided to just use memcpy
, pointers, and the hton*
functions. Do I need to manipulate a char
in any way to send it over the network in a platform agnostic manner? (the char
is only used as a byte, not as a character).
Why not boost serialization or protocol buffers?