RpcListener Class Reference

#include <RpcListener.h>

Inheritance diagram for RpcListener:

BaseLookup BaseOverlay Chord Gia Kademlia Vast List of all members.

Detailed Description

A Remote-Procedure-Call listener class.

Author:
Sebastian Mies


Public Member Functions

virtual ~RpcListener ()

Protected Member Functions

virtual void handleRpcResponse (BaseResponseMessage *msg, int rpcId, simtime_t rtt)
 This method is called if an RPC response has been received.
virtual void handleRpcTimeout (BaseCallMessage *msg, const NodeHandle &dest, int rpcId)
 This method is called if an RPC timeout has been reached.

Friends

class BaseOverlay


Constructor & Destructor Documentation

RpcListener::~RpcListener (  )  [virtual]

00025 {}


Member Function Documentation

void RpcListener::handleRpcResponse ( BaseResponseMessage *  msg,
int  rpcId,
simtime_t  rtt 
) [protected, virtual]

This method is called if an RPC response has been received.

Parameters:
msg The response message.
rpcId The RPC id.
rtt The Round-Trip-Time of this RPC

Reimplemented in BaseLookup, Chord, and Kademlia.

00029 {
00030     //cout << "Default RpcListener Response: from="
00031     //     << msg->getSrcNode().ip << " msg=" << *msg << endl;
00032 }

void RpcListener::handleRpcTimeout ( BaseCallMessage *  msg,
const NodeHandle dest,
int  rpcId 
) [protected, virtual]

This method is called if an RPC timeout has been reached.

Parameters:
msg The original RPC message.
dest The destination node
rpcId The RPC id.

Reimplemented in BaseLookup, Chord, and Kademlia.

00036 {
00037     //cout << "Default RpcListener Timeout: " << msg->name() << endl;
00038 }


Friends And Related Function Documentation

friend class BaseOverlay [friend]

Reimplemented in BaseLookup.


The documentation for this class was generated from the following files:
Generated on Wed Apr 4 13:37:06 2007 for ITM OverSim by  doxygen 1.4.7