⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pim_xif.cc

📁 xorp源码hg
💻 CC
📖 第 1 页 / 共 5 页
字号:
XrlPimV0p1Client::send_reset_vif_ip_router_alert_option_check(	const char*	dst_xrl_target_name,	const string&	vif_name,	const ResetVifIpRouterAlertOptionCheckCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/reset_vif_ip_router_alert_option_check");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_reset_vif_ip_router_alert_option_check, cb));}/* Unmarshall reset_vif_ip_router_alert_option_check */voidXrlPimV0p1Client::unmarshall_reset_vif_ip_router_alert_option_check(	const XrlError&	e,	XrlArgs*	a,	ResetVifIpRouterAlertOptionCheckCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_get_vif_hello_triggered_delay(	const char*	dst_xrl_target_name,	const string&	vif_name,	const GetVifHelloTriggeredDelayCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/get_vif_hello_triggered_delay");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_get_vif_hello_triggered_delay, cb));}/* Unmarshall get_vif_hello_triggered_delay */voidXrlPimV0p1Client::unmarshall_get_vif_hello_triggered_delay(	const XrlError&	e,	XrlArgs*	a,	GetVifHelloTriggeredDelayCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(1));	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    uint32_t hello_triggered_delay;    try {	a->get("hello_triggered_delay", hello_triggered_delay);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &hello_triggered_delay);}boolXrlPimV0p1Client::send_set_vif_hello_triggered_delay(	const char*	dst_xrl_target_name,	const string&	vif_name,	const uint32_t&	hello_triggered_delay,	const SetVifHelloTriggeredDelayCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/set_vif_hello_triggered_delay");    x.args().add("vif_name", vif_name);    x.args().add("hello_triggered_delay", hello_triggered_delay);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_set_vif_hello_triggered_delay, cb));}/* Unmarshall set_vif_hello_triggered_delay */voidXrlPimV0p1Client::unmarshall_set_vif_hello_triggered_delay(	const XrlError&	e,	XrlArgs*	a,	SetVifHelloTriggeredDelayCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_reset_vif_hello_triggered_delay(	const char*	dst_xrl_target_name,	const string&	vif_name,	const ResetVifHelloTriggeredDelayCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/reset_vif_hello_triggered_delay");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_reset_vif_hello_triggered_delay, cb));}/* Unmarshall reset_vif_hello_triggered_delay */voidXrlPimV0p1Client::unmarshall_reset_vif_hello_triggered_delay(	const XrlError&	e,	XrlArgs*	a,	ResetVifHelloTriggeredDelayCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_get_vif_hello_period(	const char*	dst_xrl_target_name,	const string&	vif_name,	const GetVifHelloPeriodCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/get_vif_hello_period");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_get_vif_hello_period, cb));}/* Unmarshall get_vif_hello_period */voidXrlPimV0p1Client::unmarshall_get_vif_hello_period(	const XrlError&	e,	XrlArgs*	a,	GetVifHelloPeriodCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(1));	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    uint32_t hello_period;    try {	a->get("hello_period", hello_period);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &hello_period);}boolXrlPimV0p1Client::send_set_vif_hello_period(	const char*	dst_xrl_target_name,	const string&	vif_name,	const uint32_t&	hello_period,	const SetVifHelloPeriodCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/set_vif_hello_period");    x.args().add("vif_name", vif_name);    x.args().add("hello_period", hello_period);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_set_vif_hello_period, cb));}/* Unmarshall set_vif_hello_period */voidXrlPimV0p1Client::unmarshall_set_vif_hello_period(	const XrlError&	e,	XrlArgs*	a,	SetVifHelloPeriodCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_reset_vif_hello_period(	const char*	dst_xrl_target_name,	const string&	vif_name,	const ResetVifHelloPeriodCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/reset_vif_hello_period");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_reset_vif_hello_period, cb));}/* Unmarshall reset_vif_hello_period */voidXrlPimV0p1Client::unmarshall_reset_vif_hello_period(	const XrlError&	e,	XrlArgs*	a,	ResetVifHelloPeriodCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_get_vif_hello_holdtime(	const char*	dst_xrl_target_name,	const string&	vif_name,	const GetVifHelloHoldtimeCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/get_vif_hello_holdtime");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_get_vif_hello_holdtime, cb));}/* Unmarshall get_vif_hello_holdtime */voidXrlPimV0p1Client::unmarshall_get_vif_hello_holdtime(	const XrlError&	e,	XrlArgs*	a,	GetVifHelloHoldtimeCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(1));	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    uint32_t hello_holdtime;    try {	a->get("hello_holdtime", hello_holdtime);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &hello_holdtime);}boolXrlPimV0p1Client::send_set_vif_hello_holdtime(	const char*	dst_xrl_target_name,	const string&	vif_name,	const uint32_t&	hello_holdtime,	const SetVifHelloHoldtimeCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/set_vif_hello_holdtime");    x.args().add("vif_name", vif_name);    x.args().add("hello_holdtime", hello_holdtime);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_set_vif_hello_holdtime, cb));}/* Unmarshall set_vif_hello_holdtime */voidXrlPimV0p1Client::unmarshall_set_vif_hello_holdtime(	const XrlError&	e,	XrlArgs*	a,	SetVifHelloHoldtimeCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_reset_vif_hello_holdtime(	const char*	dst_xrl_target_name,	const string&	vif_name,	const ResetVifHelloHoldtimeCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/reset_vif_hello_holdtime");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_reset_vif_hello_holdtime, cb));}/* Unmarshall reset_vif_hello_holdtime */voidXrlPimV0p1Client::unmarshall_reset_vif_hello_holdtime(	const XrlError&	e,	XrlArgs*	a,	ResetVifHelloHoldtimeCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_get_vif_dr_priority(	const char*	dst_xrl_target_name,	const string&	vif_name,	const GetVifDrPriorityCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/get_vif_dr_priority");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_get_vif_dr_priority, cb));}/* Unmarshall get_vif_dr_priority */voidXrlPimV0p1Client::unmarshall_get_vif_dr_priority(	const XrlError&	e,	XrlArgs*	a,	GetVifDrPriorityCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(1));	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    uint32_t dr_priority;    try {	a->get("dr_priority", dr_priority);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &dr_priority);}boolXrlPimV0p1Client::send_set_vif_dr_priority(	const char*	dst_xrl_target_name,	const string&	vif_name,	const uint32_t&	dr_priority,	const SetVifDrPriorityCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/set_vif_dr_priority");    x.args().add("vif_name", vif_name);    x.args().add("dr_priority", dr_priority);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_set_vif_dr_priority, cb));}/* Unmarshall set_vif_dr_priority */voidXrlPimV0p1Client::unmarshall_set_vif_dr_priority(	const XrlError&	e,	XrlArgs*	a,	SetVifDrPriorityCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_reset_vif_dr_priority(	const char*	dst_xrl_target_name,	const string&	vif_name,	const ResetVifDrPriorityCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/reset_vif_dr_priority");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_reset_vif_dr_priority, cb));}/* Unmarshall reset_vif_dr_priority */voidXrlPimV0p1Client::unmarshall_reset_vif_dr_priority(	const XrlError&	e,	XrlArgs*	a,	ResetVifDrPriorityCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0));	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlPimV0p1Client::send_get_vif_propagation_delay(	const char*	dst_xrl_target_name,	const string&	vif_name,	const GetVifPropagationDelayCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/get_vif_propagation_delay");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_get_vif_propagation_delay, cb));}/* Unmarshall get_vif_propagation_delay */voidXrlPimV0p1Client::unmarshall_get_vif_propagation_delay(	const XrlError&	e,	XrlArgs*	a,	GetVifPropagationDelayCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(1));	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    uint32_t propagation_delay;    try {	a->get("propagation_delay", propagation_delay);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &propagation_delay);}boolXrlPimV0p1Client::send_set_vif_propagation_delay(	const char*	dst_xrl_target_name,	const string&	vif_name,	const uint32_t&	propagation_delay,	const SetVifPropagationDelayCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/set_vif_propagation_delay");

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -