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 | |
Declares an if-statement for a specific call | |
#define | RPC_ON_CALL(name) |
The message name of the RPC | |
Declares an if-statement for a specific response | |
#define | RPC_ON_RESPONSE(name) |
#define IF_RPC_HANDLED if (rpcHandled) |
#define RPC_DELEGATE | ( | name, | |||
method | ) |
Value:
name##Call* _##name##Call = dynamic_cast<name##Call*>(___msg); \ if (_##name##Call != NULL) { rpcHandled = true; method(_##name##Call); \ break; }
name | The message Name of the RPC | |
method | The method to call |
Referenced by Scribe::handleRpc(), PubSubMMOG::handleRpc(), PubSubLobby::handleRpc(), P2pns::handleRpc(), Koorde::handleRpc(), DHT::handleRpc(), Chord::handleRpc(), Broose::handleRpc(), BaseRpc::internalHandleRpc(), and BaseOverlay::internalHandleRpc().
#define RPC_HANDLED rpcHandled |
#define RPC_ON_CALL | ( | name | ) |
Value:
name##Call* _##name##Call = dynamic_cast<name##Call*>(___msg); \ if (_##name##Call != NULL && !rpcHandled)
Referenced by Kademlia::handleRpc(), PubSubMMOG::handleRpcTimeout(), PubSubLobby::handleRpcTimeout(), Koorde::handleRpcTimeout(), Kademlia::handleRpcTimeout(), DHT::handleRpcTimeout(), Chord::handleRpcTimeout(), Broose::handleRpcTimeout(), BaseRpc::internalHandleRpcTimeout(), and BaseOverlay::internalHandleRpcTimeout().
#define RPC_ON_RESPONSE | ( | name | ) |
Value:
name##Response* _##name##Response = dynamic_cast<name##Response*>(___msg); \ if (_##name##Response != NULL && !rpcHandled)
Referenced by XmlRpcInterface::handleRpcResponse(), Scribe::handleRpcResponse(), PubSubMMOG::handleRpcResponse(), PubSubLobby::handleRpcResponse(), P2pns::handleRpcResponse(), Koorde::handleRpcResponse(), KBRTestApp::handleRpcResponse(), Kademlia::handleRpcResponse(), DHTTestApp::handleRpcResponse(), DHT::handleRpcResponse(), Chord::handleRpcResponse(), Broose::handleRpcResponse(), BootstrapList::handleRpcResponse(), and BaseRpc::internalHandleRpcResponse().
#define RPC_SWITCH_END | ( | ) | } while (false); |
Marks the end of a Remote-Procedure-Call Switch block.
Referenced by Scribe::handleRpc(), PubSubMMOG::handleRpc(), PubSubLobby::handleRpc(), P2pns::handleRpc(), Koorde::handleRpc(), Kademlia::handleRpc(), DHT::handleRpc(), Chord::handleRpc(), Broose::handleRpc(), XmlRpcInterface::handleRpcResponse(), Scribe::handleRpcResponse(), PubSubMMOG::handleRpcResponse(), PubSubLobby::handleRpcResponse(), P2pns::handleRpcResponse(), Koorde::handleRpcResponse(), KBRTestApp::handleRpcResponse(), Kademlia::handleRpcResponse(), DHTTestApp::handleRpcResponse(), DHT::handleRpcResponse(), Chord::handleRpcResponse(), Broose::handleRpcResponse(), BootstrapList::handleRpcResponse(), PubSubMMOG::handleRpcTimeout(), PubSubLobby::handleRpcTimeout(), Koorde::handleRpcTimeout(), Kademlia::handleRpcTimeout(), DHT::handleRpcTimeout(), Chord::handleRpcTimeout(), Broose::handleRpcTimeout(), BaseRpc::internalHandleRpc(), BaseOverlay::internalHandleRpc(), BaseRpc::internalHandleRpcResponse(), BaseRpc::internalHandleRpcTimeout(), and BaseOverlay::internalHandleRpcTimeout().
#define RPC_SWITCH_START | ( | message | ) |
Value:
bool rpcHandled = false;\ do { \ BaseRpcMessage* ___msg = dynamic_cast<BaseRpcMessage*>(message);
RPC_CALL, RPC_ON_CALL, RPC_ON_RESPONSE are allowed inside this block.
Referenced by Scribe::handleRpc(), PubSubMMOG::handleRpc(), PubSubLobby::handleRpc(), P2pns::handleRpc(), Koorde::handleRpc(), Kademlia::handleRpc(), DHT::handleRpc(), Chord::handleRpc(), Broose::handleRpc(), XmlRpcInterface::handleRpcResponse(), Scribe::handleRpcResponse(), PubSubMMOG::handleRpcResponse(), PubSubLobby::handleRpcResponse(), P2pns::handleRpcResponse(), Koorde::handleRpcResponse(), KBRTestApp::handleRpcResponse(), Kademlia::handleRpcResponse(), DHTTestApp::handleRpcResponse(), DHT::handleRpcResponse(), Chord::handleRpcResponse(), Broose::handleRpcResponse(), BootstrapList::handleRpcResponse(), PubSubMMOG::handleRpcTimeout(), PubSubLobby::handleRpcTimeout(), Koorde::handleRpcTimeout(), Kademlia::handleRpcTimeout(), DHT::handleRpcTimeout(), Chord::handleRpcTimeout(), Broose::handleRpcTimeout(), BaseRpc::internalHandleRpc(), BaseOverlay::internalHandleRpc(), BaseRpc::internalHandleRpcResponse(), BaseRpc::internalHandleRpcTimeout(), and BaseOverlay::internalHandleRpcTimeout().