Sergey Lapin
Sergey Lapin

Reputation: 1016

Android/C++ data serialization

What is the best way or library to exchange data/serialize structures between c++ server and android client? Performance is essential. Compression is preffered. Right now I am trying to implement packet exchange using msgpack (https://github.com/msgpack/msgpack-java) - for android side.

Upvotes: 1

Views: 519

Answers (1)

qehgt
qehgt

Reputation: 2990

Msgpack/protobuf are fine for this task.

But Msgpack does not fully supports 'optional' values or versioning (it can be important for your application). On the other hand, I'm not sure that all protobuf-RPC implementations are compatible to each other (Msgpack-RPC protocol is the same for every platform/implementation).

Upvotes: 1

Related Questions