This file declares some macros for RPC implementation. More...
Go to the source code of this file.
Defines | |
#define | RPC_SWITCH_START(message) |
Marks the beginning of a Remote-Procedure-Call Switch block. | |
#define | RPC_SWITCH_END() } while (false); |
Marks the end of a Remote-Procedure-Call Switch block. | |
#define | IF_RPC_HANDLED if (rpcHandled) |
#define | RPC_HANDLED rpcHandled |
#define | RPC_DELEGATE(name, method) |
Declares a RPC method delegation. | |
The message name of the RPC | |
#define | RPC_ON_CALL(name) |
#define | RPC_ON_RESPONSE(name) |
This file declares some macros for RPC implementation.
Definition in file RpcMacros.h.
#define IF_RPC_HANDLED if (rpcHandled) |
Definition at line 44 of file RpcMacros.h.
#define RPC_DELEGATE | ( | name, | |||
method | ) |
name##Call* _##name##Call = dynamic_cast<name##Call*>(___msg); \ if (_##name##Call != NULL) { rpcHandled = true; method(_##name##Call); \ break; }
Declares a RPC method delegation.
name | The message Name of the RPC | |
method | The method to call |
Definition at line 56 of file RpcMacros.h.
Referenced by Scribe::handleRpcCall(), PubSubMMOG::handleRpcCall(), PubSubLobby::handleRpcCall(), P2pns::handleRpcCall(), Nps::handleRpcCall(), oversim::Koorde::handleRpcCall(), KBRTestApp::handleRpcCall(), DHT::handleRpcCall(), oversim::Chord::handleRpcCall(), CBRDHT::handleRpcCall(), Broose::handleRpcCall(), BaseRpc::internalHandleRpcCall(), and BaseOverlay::internalHandleRpcCall().
#define RPC_HANDLED rpcHandled |
Definition at line 47 of file RpcMacros.h.
Referenced by Scribe::handleRpcCall(), PubSubMMOG::handleRpcCall(), PubSubLobby::handleRpcCall(), P2pns::handleRpcCall(), Nps::handleRpcCall(), MyOverlay::handleRpcCall(), oversim::Koorde::handleRpcCall(), KBRTestApp::handleRpcCall(), DHT::handleRpcCall(), oversim::Chord::handleRpcCall(), CBRDHT::handleRpcCall(), Broose::handleRpcCall(), BaseRpc::internalHandleRpcCall(), and BaseOverlay::internalHandleRpcCall().
#define RPC_ON_CALL | ( | name | ) |
name##Call* _##name##Call = dynamic_cast<name##Call*>(___msg); \ if (_##name##Call != NULL && !rpcHandled)
Definition at line 66 of file RpcMacros.h.
Referenced by P2pns::handleRpcCall(), MyOverlay::handleRpcCall(), Kademlia::handleRpcCall(), Broose::handleRpcCall(), PubSubMMOG::handleRpcTimeout(), PubSubLobby::handleRpcTimeout(), Nps::handleRpcTimeout(), MyOverlay::handleRpcTimeout(), oversim::Koorde::handleRpcTimeout(), KBRTestApp::handleRpcTimeout(), Kademlia::handleRpcTimeout(), DHT::handleRpcTimeout(), oversim::Chord::handleRpcTimeout(), CBRDHT::handleRpcTimeout(), Broose::handleRpcTimeout(), BaseRpc::internalHandleRpcTimeout(), and BaseOverlay::internalHandleRpcTimeout().
#define RPC_ON_RESPONSE | ( | name | ) |
name##Response* _##name##Response = dynamic_cast<name##Response*>(___msg); \ if (_##name##Response != NULL && !rpcHandled)
Definition at line 75 of file RpcMacros.h.
Referenced by XmlRpcInterface::handleRpcResponse(), Scribe::handleRpcResponse(), PubSubMMOG::handleRpcResponse(), PubSubLobby::handleRpcResponse(), P2PNSTestApp::handleRpcResponse(), P2pns::handleRpcResponse(), Nps::handleRpcResponse(), MyOverlay::handleRpcResponse(), oversim::Koorde::handleRpcResponse(), KBRTestApp::handleRpcResponse(), Kademlia::handleRpcResponse(), DHTTestApp::handleRpcResponse(), DHT::handleRpcResponse(), oversim::Chord::handleRpcResponse(), CBRDHT::handleRpcResponse(), Broose::handleRpcResponse(), BootstrapList::handleRpcResponse(), and BaseRpc::internalHandleRpcResponse().
#define RPC_SWITCH_END | ( | ) | } while (false); |
Marks the end of a Remote-Procedure-Call Switch block.
Definition at line 41 of file RpcMacros.h.
Referenced by Scribe::handleRpcCall(), PubSubMMOG::handleRpcCall(), PubSubLobby::handleRpcCall(), P2pns::handleRpcCall(), Nps::handleRpcCall(), MyOverlay::handleRpcCall(), oversim::Koorde::handleRpcCall(), KBRTestApp::handleRpcCall(), Kademlia::handleRpcCall(), DHT::handleRpcCall(), oversim::Chord::handleRpcCall(), CBRDHT::handleRpcCall(), Broose::handleRpcCall(), XmlRpcInterface::handleRpcResponse(), Scribe::handleRpcResponse(), PubSubMMOG::handleRpcResponse(), PubSubLobby::handleRpcResponse(), P2PNSTestApp::handleRpcResponse(), P2pns::handleRpcResponse(), Nps::handleRpcResponse(), MyOverlay::handleRpcResponse(), oversim::Koorde::handleRpcResponse(), KBRTestApp::handleRpcResponse(), Kademlia::handleRpcResponse(), DHTTestApp::handleRpcResponse(), DHT::handleRpcResponse(), oversim::Chord::handleRpcResponse(), CBRDHT::handleRpcResponse(), Broose::handleRpcResponse(), BootstrapList::handleRpcResponse(), PubSubMMOG::handleRpcTimeout(), PubSubLobby::handleRpcTimeout(), Nps::handleRpcTimeout(), MyOverlay::handleRpcTimeout(), oversim::Koorde::handleRpcTimeout(), KBRTestApp::handleRpcTimeout(), Kademlia::handleRpcTimeout(), DHT::handleRpcTimeout(), oversim::Chord::handleRpcTimeout(), CBRDHT::handleRpcTimeout(), Broose::handleRpcTimeout(), BaseRpc::internalHandleRpcCall(), BaseOverlay::internalHandleRpcCall(), BaseRpc::internalHandleRpcResponse(), BaseRpc::internalHandleRpcTimeout(), and BaseOverlay::internalHandleRpcTimeout().
#define RPC_SWITCH_START | ( | message | ) |
bool rpcHandled = false;\ do { \ BaseRpcMessage* ___msg = dynamic_cast<BaseRpcMessage*>(message);
Marks the beginning of a Remote-Procedure-Call Switch block.
RPC_CALL, RPC_ON_CALL, RPC_ON_RESPONSE are allowed inside this block.
Definition at line 33 of file RpcMacros.h.
Referenced by Scribe::handleRpcCall(), PubSubMMOG::handleRpcCall(), PubSubLobby::handleRpcCall(), P2pns::handleRpcCall(), Nps::handleRpcCall(), MyOverlay::handleRpcCall(), oversim::Koorde::handleRpcCall(), KBRTestApp::handleRpcCall(), Kademlia::handleRpcCall(), DHT::handleRpcCall(), oversim::Chord::handleRpcCall(), CBRDHT::handleRpcCall(), Broose::handleRpcCall(), XmlRpcInterface::handleRpcResponse(), Scribe::handleRpcResponse(), PubSubMMOG::handleRpcResponse(), PubSubLobby::handleRpcResponse(), P2PNSTestApp::handleRpcResponse(), P2pns::handleRpcResponse(), Nps::handleRpcResponse(), MyOverlay::handleRpcResponse(), oversim::Koorde::handleRpcResponse(), KBRTestApp::handleRpcResponse(), Kademlia::handleRpcResponse(), DHTTestApp::handleRpcResponse(), DHT::handleRpcResponse(), oversim::Chord::handleRpcResponse(), CBRDHT::handleRpcResponse(), Broose::handleRpcResponse(), BootstrapList::handleRpcResponse(), PubSubMMOG::handleRpcTimeout(), PubSubLobby::handleRpcTimeout(), Nps::handleRpcTimeout(), MyOverlay::handleRpcTimeout(), oversim::Koorde::handleRpcTimeout(), KBRTestApp::handleRpcTimeout(), Kademlia::handleRpcTimeout(), DHT::handleRpcTimeout(), oversim::Chord::handleRpcTimeout(), CBRDHT::handleRpcTimeout(), Broose::handleRpcTimeout(), BaseRpc::internalHandleRpcCall(), BaseOverlay::internalHandleRpcCall(), BaseRpc::internalHandleRpcResponse(), BaseRpc::internalHandleRpcTimeout(), and BaseOverlay::internalHandleRpcTimeout().