36 reorderTimeout(
senf::ClockService::milliseconds(0)),
37 reportingInterval(
senf::ClockService::milliseconds(1000)),
38 duration(
senf::ClockService::milliseconds(0)),
39 maxWait(
senf::ClockService::milliseconds(0)),
52 initDir.
add(
"source", fty::Variable(
source));
59 initDir.
add(
"verbose", fty::Variable(
verbose));
60 initDir.
add(
"csv-mode", fty::Variable(
csvMode));
62 .doc(
"Clock Drift between the nodes in ms/s (in MGEN mode). Defaults to 0."));
64 .
parser(senf::parseClockServiceInterval) );
66 .
parser(senf::parseClockServiceInterval) );
67 initDir.
add(
"max-wait", fty::Variable(
maxWait)
68 .
parser(senf::parseClockServiceInterval) );
75 .
parser(senf::parseClockServiceInterval) );
76 initDir.
add(
"promisc", fty::Variable(
promisc));
86 senf::console::DirectoryNode::ChildrenRange::iterator it;
87 for (it = range.begin(); it != range.end(); it++) {
88 std::cerr << it->first <<
": ";
89 it->second->help( std::cout);
97 std::cerr <<
"2.0" << std::endl;
116 if (senf::scheduler::haveScalableHiresTimers())
120 senf::scheduler::hiresTimers();
126 struct sched_param param;
127 param.sched_priority = sched_get_priority_max(SCHED_FIFO);
128 if (sched_setscheduler(0, SCHED_FIFO, ¶m) != 0) {
131 mlockall(MCL_FUTURE);
139 namespace kw = senf::console::kw;
146 cmdlineOptions.
parse( initDir);
148 std::cerr << e.message() << std::endl;
152 std::cerr <<
"Exception occurred during configuration parsing: " senf::ClockService::clock_type duration
senf::INet4SocketAddress destination
senf::ClockService::clock_type maxWait
senf::INet4SocketAddress logDestination
unspecified_keyword_type parser
void dev(std::string const &d)
std::string backtrace() const
boost::iterator_range< ChildMap::const_iterator > ChildrenRange
NodeType & add(std::string const &name, boost::shared_ptr< NodeType > node)
senf::ClockService::clock_type reorderTimeout
senf::ClockService::clock_type reportingInterval
bool parse(int argc, char const *argv[])
senf::INet4SocketAddress source
void enableHighresTimers()
std::string message() const
void enableRealtimeScheduling()
void monDev(std::string const &d)