?? finder_client_xif.cc
字號:
/* * 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/finder_client_xif.cc,v 1.9 2003/08/07 04:52:25 hodson Exp $"#include "finder_client_xif.hh"boolXrlFinderClientV0p2Client::send_hello( const char* the_tgt, const HelloCB& cb){ Xrl x(the_tgt, "finder_client/0.2/hello"); return _sender->send(x, callback(this, &XrlFinderClientV0p2Client::unmarshall_hello, cb));}/* Unmarshall hello */voidXrlFinderClientV0p2Client::unmarshall_hello( const XrlError& e, XrlArgs* a, HelloCB 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);}boolXrlFinderClientV0p2Client::send_remove_xrl_from_cache( const char* the_tgt, const string& xrl, const RemoveXrlFromCacheCB& cb){ Xrl x(the_tgt, "finder_client/0.2/remove_xrl_from_cache"); x.args().add("xrl", xrl); return _sender->send(x, callback(this, &XrlFinderClientV0p2Client::unmarshall_remove_xrl_from_cache, cb));}/* Unmarshall remove_xrl_from_cache */voidXrlFinderClientV0p2Client::unmarshall_remove_xrl_from_cache( const XrlError& e, XrlArgs* a, RemoveXrlFromCacheCB 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);}boolXrlFinderClientV0p2Client::send_remove_xrls_for_target_from_cache( const char* the_tgt, const string& target_name, const RemoveXrlsForTargetFromCacheCB& cb){ Xrl x(the_tgt, "finder_client/0.2/remove_xrls_for_target_from_cache"); x.args().add("target_name", target_name); return _sender->send(x, callback(this, &XrlFinderClientV0p2Client::unmarshall_remove_xrls_for_target_from_cache, cb));}/* Unmarshall remove_xrls_for_target_from_cache */voidXrlFinderClientV0p2Client::unmarshall_remove_xrls_for_target_from_cache( const XrlError& e, XrlArgs* a, RemoveXrlsForTargetFromCacheCB 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);}boolXrlFinderClientV0p2Client::send_dispatch_tunneled_xrl( const char* the_tgt, const string& xrl, const DispatchTunneledXrlCB& cb){ Xrl x(the_tgt, "finder_client/0.2/dispatch_tunneled_xrl"); x.args().add("xrl", xrl); return _sender->send(x, callback(this, &XrlFinderClientV0p2Client::unmarshall_dispatch_tunneled_xrl, cb));}/* Unmarshall dispatch_tunneled_xrl */voidXrlFinderClientV0p2Client::unmarshall_dispatch_tunneled_xrl( const XrlError& e, XrlArgs* a, DispatchTunneledXrlCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e, 0, 0); return; } else if (a && a->size() != 2) { XLOG_ERROR("Wrong number of arguments (%u != 2)", (uint32_t)a->size()); cb->dispatch(XrlError::BAD_ARGS(), 0, 0); return; } uint32_t xrl_error; string xrl_error_note; try { a->get("xrl_error", xrl_error); a->get("xrl_error_note", xrl_error_note); } catch (const XrlArgs::XrlAtomNotFound&) { XLOG_ERROR("Atom not found"); cb->dispatch(XrlError::BAD_ARGS(), 0, 0); return; } cb->dispatch(e, &xrl_error, &xrl_error_note);}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
減小字號
Ctrl + -