| Revision: | 1.2 |
| Committed: | Mon Oct 25 12:06:58 2010 UTC (15 years, 11 months ago) by sf-pippijn |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 1.1: | +1 -0 lines |
| Log Message: | be more strict about the protocol |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | sf-pippijn | 1.1 | #include <json/json.h> |
| 2 | |||
| 3 | void | ||
| 4 | command_parser::on_version (std::istream &args) | ||
| 5 | { | ||
| 6 | Json::Reader reader; | ||
| 7 | Json::Value server_version; | ||
| 8 | reader.parse (args, server_version, false); | ||
| 9 | sf-pippijn | 1.2 | PARSE_END; |
| 10 | sf-pippijn | 1.1 | |
| 11 | emit version (server_version); | ||
| 12 | } |