35 return time::seconds(4);
38 ndn::nfd::CommandOptions
41 return ndn::nfd::CommandOptions()
42 .setTimeout(time::duration_cast<time::milliseconds>(this->
getTimeout()));
45 Controller::CommandFailCallback
48 return [=] (
const ControlResponse& resp) {
50 this->
err <<
"Error " << resp.getCode() <<
" when " << commandName <<
": " << resp.getText() <<
'\n';
54 Controller::DatasetFailCallback
57 return [=] (uint32_t code,
const std::string& reason) {
59 this->
err <<
"Error " << code <<
" when fetching " << datasetName <<
": " << reason <<
'\n';
ndn::nfd::CommandOptions makeCommandOptions() const
Controller::CommandFailCallback makeCommandFailureHandler(const std::string &commandName)
time::nanoseconds getTimeout() const
int exitCode
program exit code
Controller::DatasetFailCallback makeDatasetFailureHandler(const std::string &datasetName)
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
std::ostream & err
error stream