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

AckReconsController Class Reference

#include <ack-recons.h>

Inheritance diagram for AckReconsController:

Inheritance graph
[legend]
Collaboration diagram for AckReconsController:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AckReconsController ()
void recv (Packet *p, Handler *h=0)

Public Attributes

SemanticPacketQueuespq_

Constructor & Destructor Documentation

AckReconsController::AckReconsController  )  [inline]
 

Definition at line 56 of file ack-recons.h.

References spq_.

00056 : spq_(0) {}


Member Function Documentation

void AckReconsController::recv Packet p,
Handler h = 0
 

Definition at line 72 of file ack-recons.cc.

References abort(), hdr_ip::access(), hdr_ip::daddr(), AckRecons::recv(), hdr_ip::saddr(), spq_, and AckRecons::spq_.

Referenced by SemanticPacketQueue::enque().

00073 {
00074         Tcl& tcl = Tcl::instance();
00075         hdr_ip *ip = hdr_ip::access(p);
00076         tcl.evalf("%s demux %d %d", name(),
00077                   ip->saddr(), ip->daddr());
00078         AckRecons *ackRecons = 
00079                 (AckRecons *) TclObject::lookup(tcl.result());
00080         if (ackRecons == NULL) {
00081                 printf("Error: malformed ack reconstructor\n");
00082                 abort();
00083         }
00084         ackRecons->spq_ = spq_;
00085         ackRecons->recv(p);
00086 }

Here is the call graph for this function:


Member Data Documentation

SemanticPacketQueue* AckReconsController::spq_
 

Definition at line 58 of file ack-recons.h.

Referenced by AckReconsController(), SemanticPacketQueue::command(), and recv().


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