Added initial JSON-RPC support.

JSON-RPC is enabled using --enable-xml-rpc. We are implementing
JSON-RPC based on JSON-RPC 2.0 draft spec.
This commit is contained in:
Tatsuhiro Tsujikawa
2011-03-09 23:07:27 +09:00
parent d541b350d2
commit 7338a25035
21 changed files with 1528 additions and 42 deletions

View File

@@ -68,6 +68,10 @@ public:
// in this class.
GZipEncoder& operator<<(const std::string& s);
// Feeds binary data in s with size length to deflater. The
// deflated result is kept in this class.
GZipEncoder& write(const char* s, size_t length);
// Feeds integer to deflator. Before passed to deflator, i is
// converted to std::string using util::itos(). The deflated result
// is kept in this class.