#include <RpcListener.h>
Public Member Functions | |
virtual | ~RpcListener () |
destructor | |
Protected Member Functions | |
virtual void | handleRpcResponse (BaseResponseMessage *msg, cPolymorphic *context, int rpcId, simtime_t rtt) |
This method is called if an RPC response has been received. | |
virtual void | handleRpcTimeout (BaseCallMessage *msg, const TransportAddress &dest, cPolymorphic *context, int rpcId, const OverlayKey &destKey) |
This method is called if an RPC timeout has been reached. | |
Friends | |
class | BaseRpc |
void RpcListener::handleRpcResponse | ( | BaseResponseMessage * | msg, | |
cPolymorphic * | context, | |||
int | rpcId, | |||
simtime_t | rtt | |||
) | [protected, virtual] |
This method is called if an RPC response has been received.
msg | The response message. | |
context | Pointer to an optional state object. The object has to be handled/deleted by the handleRpcResponse() code | |
rpcId | The RPC id. | |
rtt | The Round-Trip-Time of this RPC |
Reimplemented in DHT, KBRTestApp, Scribe, BootstrapList, IterativeLookup, RecursiveLookup, Broose, Chord, Kademlia, Koorde, PubSubLobby, PubSubMMOG, DHTTestApp, P2pns, SimMud, and XmlRpcInterface.
Referenced by BaseRpc::internalHandleRpcMessage(), BaseRpc::pingNode(), and BaseRpc::pingRpcResponse().
00030 { 00031 //cout << "Default RpcListener Response: from=" 00032 // << msg->getSrcNode().ip << " msg=" << *msg << endl; 00033 }
void RpcListener::handleRpcTimeout | ( | BaseCallMessage * | msg, | |
const TransportAddress & | dest, | |||
cPolymorphic * | context, | |||
int | rpcId, | |||
const OverlayKey & | destKey | |||
) | [protected, virtual] |
This method is called if an RPC timeout has been reached.
msg | The original RPC message. | |
dest | The destination node | |
context | Pointer to an optional state object. The object has to be handled/deleted by the handleRpcResponse() code | |
rpcId | The RPC id. | |
destKey | the destination OverlayKey |
Reimplemented in DHT, IterativeLookup, RecursiveLookup, Broose, Chord, Kademlia, Koorde, PubSubLobby, PubSubMMOG, P2pns, and XmlRpcInterface.
Referenced by BaseRpc::internalHandleRpcMessage(), and BaseRpc::pingRpcTimeout().
friend class BaseRpc [friend] |