fea_ifmgr_replicator_xif.cc

来自「BCAST Implementation for NS2」· CC 代码 · 共 77 行

CC
77
字号
/* * 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/fea_ifmgr_replicator_xif.cc,v 1.1 2003/08/28 00:08:52 hodson Exp $"#include "fea_ifmgr_replicator_xif.hh"boolXrlIfmgrReplicatorV0p1Client::send_register_ifmgr_mirror(	const char*	the_tgt, 	const string&	clientname, 	const RegisterIfmgrMirrorCB&	cb){    Xrl x(the_tgt, "ifmgr_replicator/0.1/register_ifmgr_mirror");    x.args().add("clientname", clientname);    return _sender->send(x, callback(this, &XrlIfmgrReplicatorV0p1Client::unmarshall_register_ifmgr_mirror, cb));}/* Unmarshall register_ifmgr_mirror */voidXrlIfmgrReplicatorV0p1Client::unmarshall_register_ifmgr_mirror(	const XrlError&	e, 	XrlArgs*	a, 	RegisterIfmgrMirrorCB		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);}boolXrlIfmgrReplicatorV0p1Client::send_unregister_ifmgr_mirror(	const char*	the_tgt, 	const string&	clientname, 	const UnregisterIfmgrMirrorCB&	cb){    Xrl x(the_tgt, "ifmgr_replicator/0.1/unregister_ifmgr_mirror");    x.args().add("clientname", clientname);    return _sender->send(x, callback(this, &XrlIfmgrReplicatorV0p1Client::unmarshall_unregister_ifmgr_mirror, cb));}/* Unmarshall unregister_ifmgr_mirror */voidXrlIfmgrReplicatorV0p1Client::unmarshall_unregister_ifmgr_mirror(	const XrlError&	e, 	XrlArgs*	a, 	UnregisterIfmgrMirrorCB		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);}

⌨️ 快捷键说明

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