mfea_xif.cc

来自「BCAST Implementation for NS2」· CC 代码 · 共 1,933 行 · 第 1/4 页

CC
1,933
字号
/* * Copyright (c) 2001-2003 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/mfea_xif.cc,v 1.10 2003/09/23 03:35:39 pavlin Exp $"#include "mfea_xif.hh"boolXrlMfeaV0p1Client::send_have_multicast_routing4(	const char*	the_tgt, 	const HaveMulticastRouting4CB&	cb){    Xrl x(the_tgt, "mfea/0.1/have_multicast_routing4");    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_have_multicast_routing4, cb));}/* Unmarshall have_multicast_routing4 */voidXrlMfeaV0p1Client::unmarshall_have_multicast_routing4(	const XrlError&	e, 	XrlArgs*	a, 	HaveMulticastRouting4CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != 1)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    bool result;    try {	a->get("result", result);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &result);}boolXrlMfeaV0p1Client::send_have_multicast_routing6(	const char*	the_tgt, 	const HaveMulticastRouting6CB&	cb){    Xrl x(the_tgt, "mfea/0.1/have_multicast_routing6");    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_have_multicast_routing6, cb));}/* Unmarshall have_multicast_routing6 */voidXrlMfeaV0p1Client::unmarshall_have_multicast_routing6(	const XrlError&	e, 	XrlArgs*	a, 	HaveMulticastRouting6CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e, 0);	return;    } else if (a && a->size() != 1) {	XLOG_ERROR("Wrong number of arguments (%u != 1)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    bool result;    try {	a->get("result", result);    } catch (const XrlArgs::XrlAtomNotFound&) {	XLOG_ERROR("Atom not found");	cb->dispatch(XrlError::BAD_ARGS(), 0);	return;    }    cb->dispatch(e, &result);}boolXrlMfeaV0p1Client::send_add_protocol4(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const AddProtocol4CB&	cb){    Xrl x(the_tgt, "mfea/0.1/add_protocol4");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_add_protocol4, cb));}/* Unmarshall add_protocol4 */voidXrlMfeaV0p1Client::unmarshall_add_protocol4(	const XrlError&	e, 	XrlArgs*	a, 	AddProtocol4CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_add_protocol6(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const AddProtocol6CB&	cb){    Xrl x(the_tgt, "mfea/0.1/add_protocol6");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_add_protocol6, cb));}/* Unmarshall add_protocol6 */voidXrlMfeaV0p1Client::unmarshall_add_protocol6(	const XrlError&	e, 	XrlArgs*	a, 	AddProtocol6CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_delete_protocol4(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const DeleteProtocol4CB&	cb){    Xrl x(the_tgt, "mfea/0.1/delete_protocol4");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_delete_protocol4, cb));}/* Unmarshall delete_protocol4 */voidXrlMfeaV0p1Client::unmarshall_delete_protocol4(	const XrlError&	e, 	XrlArgs*	a, 	DeleteProtocol4CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_delete_protocol6(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const DeleteProtocol6CB&	cb){    Xrl x(the_tgt, "mfea/0.1/delete_protocol6");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_delete_protocol6, cb));}/* Unmarshall delete_protocol6 */voidXrlMfeaV0p1Client::unmarshall_delete_protocol6(	const XrlError&	e, 	XrlArgs*	a, 	DeleteProtocol6CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_start_protocol_vif4(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const StartProtocolVif4CB&	cb){    Xrl x(the_tgt, "mfea/0.1/start_protocol_vif4");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    x.args().add("vif_name", vif_name);    x.args().add("vif_index", vif_index);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_start_protocol_vif4, cb));}/* Unmarshall start_protocol_vif4 */voidXrlMfeaV0p1Client::unmarshall_start_protocol_vif4(	const XrlError&	e, 	XrlArgs*	a, 	StartProtocolVif4CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_start_protocol_vif6(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const StartProtocolVif6CB&	cb){    Xrl x(the_tgt, "mfea/0.1/start_protocol_vif6");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    x.args().add("vif_name", vif_name);    x.args().add("vif_index", vif_index);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_start_protocol_vif6, cb));}/* Unmarshall start_protocol_vif6 */voidXrlMfeaV0p1Client::unmarshall_start_protocol_vif6(	const XrlError&	e, 	XrlArgs*	a, 	StartProtocolVif6CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_stop_protocol_vif4(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const StopProtocolVif4CB&	cb){    Xrl x(the_tgt, "mfea/0.1/stop_protocol_vif4");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    x.args().add("vif_name", vif_name);    x.args().add("vif_index", vif_index);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_stop_protocol_vif4, cb));}/* Unmarshall stop_protocol_vif4 */voidXrlMfeaV0p1Client::unmarshall_stop_protocol_vif4(	const XrlError&	e, 	XrlArgs*	a, 	StopProtocolVif4CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_stop_protocol_vif6(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const StopProtocolVif6CB&	cb){    Xrl x(the_tgt, "mfea/0.1/stop_protocol_vif6");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    x.args().add("vif_name", vif_name);    x.args().add("vif_index", vif_index);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_stop_protocol_vif6, cb));}/* Unmarshall stop_protocol_vif6 */voidXrlMfeaV0p1Client::unmarshall_stop_protocol_vif6(	const XrlError&	e, 	XrlArgs*	a, 	StopProtocolVif6CB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_allow_signal_messages(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const bool&	is_allow, 	const AllowSignalMessagesCB&	cb){    Xrl x(the_tgt, "mfea/0.1/allow_signal_messages");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    x.args().add("is_allow", is_allow);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_allow_signal_messages, cb));}/* Unmarshall allow_signal_messages */voidXrlMfeaV0p1Client::unmarshall_allow_signal_messages(	const XrlError&	e, 	XrlArgs*	a, 	AllowSignalMessagesCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_allow_mrib_messages(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const bool&	is_allow, 	const AllowMribMessagesCB&	cb){    Xrl x(the_tgt, "mfea/0.1/allow_mrib_messages");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);    x.args().add("protocol_id", protocol_id);    x.args().add("is_allow", is_allow);    return _sender->send(x, callback(this, &XrlMfeaV0p1Client::unmarshall_allow_mrib_messages, cb));}/* Unmarshall allow_mrib_messages */voidXrlMfeaV0p1Client::unmarshall_allow_mrib_messages(	const XrlError&	e, 	XrlArgs*	a, 	AllowMribMessagesCB		cb){    if (e != XrlError::OKAY()) {	cb->dispatch(e);	return;    } else if (a && a->size() != 0) {	XLOG_ERROR("Wrong number of arguments (%u != 0)", (uint32_t)a->size());	cb->dispatch(XrlError::BAD_ARGS());	return;    }    cb->dispatch(e);}boolXrlMfeaV0p1Client::send_join_multicast_group4(	const char*	the_tgt, 	const string&	xrl_sender_name, 	const string&	protocol_name, 	const uint32_t&	protocol_id, 	const string&	vif_name, 	const uint32_t&	vif_index, 	const IPv4&	group_address, 	const JoinMulticastGroup4CB&	cb){    Xrl x(the_tgt, "mfea/0.1/join_multicast_group4");    x.args().add("xrl_sender_name", xrl_sender_name);    x.args().add("protocol_name", protocol_name);

⌨️ 快捷键说明

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