#include <RpcListener.h>

Definition at line 37 of file 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 |
| RpcListener::~RpcListener | ( | ) | [virtual] |
| 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, oversim::Chord, Kademlia, oversim::Koorde, PubSubLobby, PubSubMMOG, DHTTestApp, P2pns, SimMud, and XmlRpcInterface.
Definition at line 32 of file RpcListener.cc.
Referenced by BaseRpc::internalHandleRpcMessage(), BaseRpc::pingNode(), and BaseRpc::pingRpcResponse().
00035 { 00036 //cout << "Default RpcListener Response: from=" 00037 // << msg->getSrcNode().ip << " msg=" << *msg << endl; 00038 }
| 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, oversim::Chord, Kademlia, oversim::Koorde, PubSubLobby, PubSubMMOG, P2pns, and XmlRpcInterface.
Definition at line 40 of file RpcListener.cc.
Referenced by BaseRpc::internalHandleRpcMessage(), and BaseRpc::pingRpcTimeout().
friend class BaseRpc [friend] |
Definition at line 39 of file RpcListener.h.
1.5.5