I have a server application that I am rewriting in C++ and this used to use XML to send data to a client/from a client. I have found it to be a real pain to implement XML, even using existing libraries. It seems that it is just counter intuitive at times and the C++ library I’ve used seems so overly complicated.
I was wondering if anyone knew any better ways to send over data from client to server and back in a simpler and more intuitive way then parsing XML. The data consists mostly of only basic types.
I was thinking maybe just use a struct with the needed data types and just send it over a raw socket.
I have wasted so much time on this, it’s unreal.
I’d try JSON or Google’s protocol buffers to see if they work for you.