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

📄 pim_xif.cc

📁 xorp源码hg
💻 CC
📖 第 1 页 / 共 5 页
字号:
/* * Copyright (c) 2001-2007 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'clnt-gen'. */#ident "$XORP: xorp/xrl/interfaces/pim_xif.cc,v 1.38 2007/02/16 22:47:40 pavlin Exp $"#include "pim_xif.hh"boolXrlPimV0p1Client::send_enable_vif(	const char*	dst_xrl_target_name,	const string&	vif_name,	const bool&	enable,	const EnableVifCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/enable_vif");    x.args().add("vif_name", vif_name);    x.args().add("enable", enable);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_enable_vif, cb));}/* Unmarshall enable_vif */voidXrlPimV0p1Client::unmarshall_enable_vif(	const XrlError&	e,	XrlArgs*	a,	EnableVifCB		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_start_vif(	const char*	dst_xrl_target_name,	const string&	vif_name,	const StartVifCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/start_vif");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_start_vif, cb));}/* Unmarshall start_vif */voidXrlPimV0p1Client::unmarshall_start_vif(	const XrlError&	e,	XrlArgs*	a,	StartVifCB		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_stop_vif(	const char*	dst_xrl_target_name,	const string&	vif_name,	const StopVifCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/stop_vif");    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_stop_vif, cb));}/* Unmarshall stop_vif */voidXrlPimV0p1Client::unmarshall_stop_vif(	const XrlError&	e,	XrlArgs*	a,	StopVifCB		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_enable_all_vifs(	const char*	dst_xrl_target_name,	const bool&	enable,	const EnableAllVifsCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/enable_all_vifs");    x.args().add("enable", enable);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_enable_all_vifs, cb));}/* Unmarshall enable_all_vifs */voidXrlPimV0p1Client::unmarshall_enable_all_vifs(	const XrlError&	e,	XrlArgs*	a,	EnableAllVifsCB		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_start_all_vifs(	const char*	dst_xrl_target_name,	const StartAllVifsCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/start_all_vifs");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_start_all_vifs, cb));}/* Unmarshall start_all_vifs */voidXrlPimV0p1Client::unmarshall_start_all_vifs(	const XrlError&	e,	XrlArgs*	a,	StartAllVifsCB		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_stop_all_vifs(	const char*	dst_xrl_target_name,	const StopAllVifsCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/stop_all_vifs");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_stop_all_vifs, cb));}/* Unmarshall stop_all_vifs */voidXrlPimV0p1Client::unmarshall_stop_all_vifs(	const XrlError&	e,	XrlArgs*	a,	StopAllVifsCB		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_enable_pim(	const char*	dst_xrl_target_name,	const bool&	enable,	const EnablePimCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/enable_pim");    x.args().add("enable", enable);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_enable_pim, cb));}/* Unmarshall enable_pim */voidXrlPimV0p1Client::unmarshall_enable_pim(	const XrlError&	e,	XrlArgs*	a,	EnablePimCB		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_start_pim(	const char*	dst_xrl_target_name,	const StartPimCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/start_pim");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_start_pim, cb));}/* Unmarshall start_pim */voidXrlPimV0p1Client::unmarshall_start_pim(	const XrlError&	e,	XrlArgs*	a,	StartPimCB		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_stop_pim(	const char*	dst_xrl_target_name,	const StopPimCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/stop_pim");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_stop_pim, cb));}/* Unmarshall stop_pim */voidXrlPimV0p1Client::unmarshall_stop_pim(	const XrlError&	e,	XrlArgs*	a,	StopPimCB		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_enable_cli(	const char*	dst_xrl_target_name,	const bool&	enable,	const EnableCliCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/enable_cli");    x.args().add("enable", enable);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_enable_cli, cb));}/* Unmarshall enable_cli */voidXrlPimV0p1Client::unmarshall_enable_cli(	const XrlError&	e,	XrlArgs*	a,	EnableCliCB		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_start_cli(	const char*	dst_xrl_target_name,	const StartCliCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/start_cli");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_start_cli, cb));}/* Unmarshall start_cli */voidXrlPimV0p1Client::unmarshall_start_cli(	const XrlError&	e,	XrlArgs*	a,	StartCliCB		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_stop_cli(	const char*	dst_xrl_target_name,	const StopCliCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/stop_cli");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_stop_cli, cb));}/* Unmarshall stop_cli */voidXrlPimV0p1Client::unmarshall_stop_cli(	const XrlError&	e,	XrlArgs*	a,	StopCliCB		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_enable_bsr(	const char*	dst_xrl_target_name,	const bool&	enable,	const EnableBsrCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/enable_bsr");    x.args().add("enable", enable);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_enable_bsr, cb));}/* Unmarshall enable_bsr */voidXrlPimV0p1Client::unmarshall_enable_bsr(	const XrlError&	e,	XrlArgs*	a,	EnableBsrCB		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_start_bsr(	const char*	dst_xrl_target_name,	const StartBsrCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/start_bsr");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_start_bsr, cb));}/* Unmarshall start_bsr */voidXrlPimV0p1Client::unmarshall_start_bsr(	const XrlError&	e,	XrlArgs*	a,	StartBsrCB		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_stop_bsr(	const char*	dst_xrl_target_name,	const StopBsrCB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/stop_bsr");    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_stop_bsr, cb));}/* Unmarshall stop_bsr */voidXrlPimV0p1Client::unmarshall_stop_bsr(	const XrlError&	e,	XrlArgs*	a,	StopBsrCB		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_add_config_scope_zone_by_vif_name4(	const char*	dst_xrl_target_name,	const IPv4Net&	scope_zone_id,	const string&	vif_name,	const AddConfigScopeZoneByVifName4CB&	cb){    Xrl x(dst_xrl_target_name, "pim/0.1/add_config_scope_zone_by_vif_name4");    x.args().add("scope_zone_id", scope_zone_id);    x.args().add("vif_name", vif_name);    return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_add_config_scope_zone_by_vif_name4, cb));}/* Unmarshall add_config_scope_zone_by_vif_name4 */voidXrlPimV0p1Client::unmarshall_add_config_scope_zone_by_vif_name4(	const XrlError&	e,	XrlArgs*	a,	AddConfigScopeZoneByVifName4CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);

⌨️ 快捷键说明

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