not really sure about these changes... added timeout/exceptions

git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@800 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
sala
2014-03-24 16:20:41 +00:00
parent c44b8d34c7
commit 87407b5529
2 changed files with 76 additions and 34 deletions

View File

@@ -73,11 +73,11 @@ public:
rest.init("localhost",8080);
std::string answer;
int code = rest.get_json("status", &answer);
std::cout << answer << std::endl;
std::cout << "Answer: " << answer << std::endl;
JsonBox::Value json_value;
code = rest.get_json("status", &json_value);
std::cout << "JSON " << json_value["status"] << std::endl;
//JsonBox::Value json_value;
//code = rest.get_json("status", &json_value);
//std::cout << "JSON " << json_value["status"] << std::endl;
}