Hi, recently I talked about problems with buffering in the json deserializer. When the json data is read from a std::istream with cxxtools, the json deserializer bufferes input in a cxxtools::ITextStream, which is a stream, which converts bytes to unicode using a codec. After reading the buffered data is discarded, which is a problem, when the deserializer has read more data than needed.
I have fixed that with the full solution. Now there is no buffered text stream in json deserializer any more. The data is fetched directly from the codec. We use the json serializer and deserializer in a stream based interface where a server sends a data stream to a client. Using the serialization framework we can send objects instead of a byte stream to the peer. If you need something like that, you can look at the demo msgclient.cpp and msgserver.cpp. There binary serialization is used but it works as well using json if you just replace "bin" with "json" in the demo. And it should work with xml as well while I have not tested it. Tommi ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
