Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

InterestCallback Class Reference

#include <dr.hh>

Inheritance diagram for InterestCallback:

Inheritance graph
[legend]
Collaboration diagram for InterestCallback:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 InterestCallback (DiffusionRouting *drt, HandleEntry *handle_entry)
 ~InterestCallback ()
int expire ()

Public Attributes

DiffusionRoutingdrt_
HandleEntryhandle_entry_

Constructor & Destructor Documentation

InterestCallback::InterestCallback DiffusionRouting drt,
HandleEntry handle_entry
[inline]
 

Definition at line 75 of file dr.hh.

References drt_, and handle_entry_.

00075                                                                      :
00076     drt_(drt), handle_entry_(handle_entry) {};
  ~InterestCallback() {};

InterestCallback::~InterestCallback  )  [inline]
 

Definition at line 77 of file dr.hh.

00077 {};


Member Function Documentation

int InterestCallback::expire  )  [virtual]
 

Implements TimerCallback.

Definition at line 59 of file dr.cc.

References drt_, handle_entry_, and DiffusionRouting::interestTimeout().

00060 {
00061   int retval;
00062 
00063   // Call the interestTimeout function
00064   retval = drt_->interestTimeout(handle_entry_);
00065 
00066   if (retval < 0)
00067     delete this;
00068 
00069   return retval;
00070 }

Here is the call graph for this function:


Member Data Documentation

DiffusionRouting* InterestCallback::drt_
 

Definition at line 80 of file dr.hh.

Referenced by expire(), and InterestCallback().

HandleEntry* InterestCallback::handle_entry_
 

Definition at line 81 of file dr.hh.

Referenced by expire(), and InterestCallback().


The documentation for this class was generated from the following files:
Generated on Tue Apr 20 12:53:03 2004 for NS2.26SourcesOriginal by doxygen 1.3.3