ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/cvsroot/cf.schmorp.de/dclient/src/backend/communicator/command_parser/version.h
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

File Contents

# Content
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 PARSE_END;
10
11 emit version (server_version);
12 }