Hi guyz, I am trying to make a server for cocos2d-x. What method should I use for communication? Serialization or RPC?
Any experienced multiplayer game developer could help me in this problem.
Thanks
It depends on what you need.
Take a look at these 3 libraries:
- Protocol Buffers: https://github.com/google/protobuf
- Thrift: https://thrift.apache.org/
- Avro: http://avro.apache.org/
And read this good comparison between the 3 of them: http://www.slideshare.net/IgorAnishchenko/pb-vs-thrift-vs-avro
And for serialization only, try:
- Flatbuffers: https://github.com/google/flatbuffers