c++ network serialization -
i'm looking solution serializing of c++ packets network stream.
i have seen many posts here refering people to:
ace
google protocol buffers
boost::serialization
qt ::qdatastream
my requirements/ constraints:
the solution must unaware of litteendian/bigendian. machine architecture x86/x64 , platform independant.
the foot print (ram & rom) of first 3 solution big platform,and fourth conflicting next requirement.
the solution won't require lot of boilerplate code (there 200+ packet serialized).
thanks, koby meir
if find out google protocol buffers heavy (i can agree because compiled library take more 1 mb), maybe try lite version of protobuf. lite version few times smaller. support lite version enabled in *.proto inserting following line
option optimize_for = lite_runtime; more found here http://code.google.com/intl/pl-pl/apis/protocolbuffers/docs/reference/cpp/google.protobuf.message_lite.html
but if need protobuf solution minimal overhead go c implementation of protobuf http://code.google.com/p/protobuf-c/ little harder use in compare c++, binary code size overhead should minimal (30-50kb). know c implementation used example umurmur - voice server runs on embeded linux arm , mips routers.
Comments
Post a Comment