13 #include <boost/foreach.hpp>
58 cnt = setDefaults(global, AGENT_DEFAULTS);
63 ElementPtr d2 = boost::const_pointer_cast<Element>(sockets->get(
"d2"));
68 ElementPtr d4 = boost::const_pointer_cast<Element>(sockets->get(
"dhcp4"));
73 ElementPtr d6 = boost::const_pointer_cast<Element>(sockets->get(
"dhcp6"));
89 ctx->setHttpPort(SimpleParser::getIntType<uint16_t>(config,
"http-port"));
94 auto sockets_map = ctrl_sockets->mapValue();
95 for (
auto cs = sockets_map.cbegin(); cs != sockets_map.cend(); ++cs) {
96 ctx->setControlSocketInfo(cs->second, cs->first);
103 ctx->setContext(user_context);
113 hooks_parser.
parse(libraries, hooks);