pim_xif.cc
来自「BCAST Implementation for NS2」· CC 代码 · 共 2,654 行 · 第 1/5 页
CC
2,654 行
/* * 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/pim_xif.cc,v 1.19 2003/09/30 18:27:07 pavlin Exp $"#include "pim_xif.hh"boolXrlPimV0p1Client::send_enable_vif( const char* the_tgt, const string& vif_name, const EnableVifCB& cb){ Xrl x(the_tgt, "pim/0.1/enable_vif"); x.args().add("vif_name", vif_name); 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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_disable_vif( const char* the_tgt, const string& vif_name, const DisableVifCB& cb){ Xrl x(the_tgt, "pim/0.1/disable_vif"); x.args().add("vif_name", vif_name); return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_disable_vif, cb));}/* Unmarshall disable_vif */voidXrlPimV0p1Client::unmarshall_disable_vif( const XrlError& e, XrlArgs* a, DisableVifCB 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);}boolXrlPimV0p1Client::send_start_vif( const char* the_tgt, const string& vif_name, const StartVifCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_stop_vif( const char* the_tgt, const string& vif_name, const StopVifCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_enable_all_vifs( const char* the_tgt, const EnableAllVifsCB& cb){ Xrl x(the_tgt, "pim/0.1/enable_all_vifs"); 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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_disable_all_vifs( const char* the_tgt, const DisableAllVifsCB& cb){ Xrl x(the_tgt, "pim/0.1/disable_all_vifs"); return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_disable_all_vifs, cb));}/* Unmarshall disable_all_vifs */voidXrlPimV0p1Client::unmarshall_disable_all_vifs( const XrlError& e, XrlArgs* a, DisableAllVifsCB 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);}boolXrlPimV0p1Client::send_start_all_vifs( const char* the_tgt, const StartAllVifsCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_stop_all_vifs( const char* the_tgt, const StopAllVifsCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_enable_pim( const char* the_tgt, const EnablePimCB& cb){ Xrl x(the_tgt, "pim/0.1/enable_pim"); 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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_disable_pim( const char* the_tgt, const DisablePimCB& cb){ Xrl x(the_tgt, "pim/0.1/disable_pim"); return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_disable_pim, cb));}/* Unmarshall disable_pim */voidXrlPimV0p1Client::unmarshall_disable_pim( const XrlError& e, XrlArgs* a, DisablePimCB 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);}boolXrlPimV0p1Client::send_enable_cli( const char* the_tgt, const EnableCliCB& cb){ Xrl x(the_tgt, "pim/0.1/enable_cli"); 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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_disable_cli( const char* the_tgt, const DisableCliCB& cb){ Xrl x(the_tgt, "pim/0.1/disable_cli"); return _sender->send(x, callback(this, &XrlPimV0p1Client::unmarshall_disable_cli, cb));}/* Unmarshall disable_cli */voidXrlPimV0p1Client::unmarshall_disable_cli( const XrlError& e, XrlArgs* a, DisableCliCB 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);}boolXrlPimV0p1Client::send_start_pim( const char* the_tgt, const StartPimCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_stop_pim( const char* the_tgt, const StopPimCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_start_cli( const char* the_tgt, const StartCliCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_stop_cli( const char* the_tgt, const StopCliCB& cb){ Xrl x(the_tgt, "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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlPimV0p1Client::send_enable_bsr( const char* the_tgt, const EnableBsrCB& cb){ Xrl x(the_tgt, "pim/0.1/enable_bsr"); 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 != 0)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?