RpcMacros.h File Reference

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
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)


Detailed Description

This file declares some macros for RPC implementation.

Author:
Sebastian Mies

Definition in file RpcMacros.h.


Define Documentation

#define IF_RPC_HANDLED   if (rpcHandled)

Definition at line 44 of file RpcMacros.h.

#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; }
Declares a RPC method delegation.

Parameters:
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(), NeighborCache::handleRpcCall(), oversim::Koorde::handleRpcCall(), KBRTestApp::handleRpcCall(), DHT::handleRpcCall(), oversim::Chord::handleRpcCall(), CBRDHT::handleRpcCall(), Broose::handleRpcCall(), BaseRpc::internalHandleRpcCall(), and BaseOverlay::internalHandleRpcCall().

#define RPC_HANDLED   rpcHandled

#define RPC_ON_CALL ( name   ) 

#define RPC_ON_RESPONSE ( name   ) 

 
#define RPC_SWITCH_END (  )     } while (false);

#define RPC_SWITCH_START ( message   ) 

Value:

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(), NeighborCache::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(), P2pns::handleRpcResponse(), Nps::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(), 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().


Generated on Tue Sep 8 17:26:55 2009 for OverSim by  doxygen 1.5.8