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

ACE_RMCast_Resend_Worker Class Reference

Process an Ack message in the ACE_RMCast_Retransmission module. More...

#include <RMCast_Resend_Worker.h>

Inheritance diagram for ACE_RMCast_Resend_Worker:

Inheritance graph
[legend]
Collaboration diagram for ACE_RMCast_Resend_Worker:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_RMCast_Resend_Worker (ACE_RMCast_Module *next, ACE_UINT32 max_sequence_number)
virtual int work (ACE_UINT32 const &key, ACE_RMCast::Data const &item)

Public Attributes

int n

Private Methods

 ACE_RMCast_Resend_Worker (const ACE_RMCast_Resend_Worker &)
ACE_RMCast_Resend_Worker & operator= (const ACE_RMCast_Resend_Worker &)

Private Attributes

ACE_RMCast_Modulenext_
ACE_UINT32 max_sequence_number_

Detailed Description

Process an Ack message in the ACE_RMCast_Retransmission module.

The retransmission module uses internal iterators, thus it needs to create helper Worker classes to process some messages.

Definition at line 22 of file RMCast_Resend_Worker.h.


Constructor & Destructor Documentation

ACE_INLINE ACE_RMCast_Resend_Worker::ACE_RMCast_Resend_Worker ACE_RMCast_Module   next,
ACE_UINT32    max_sequence_number
 

Definition at line 6 of file RMCast_Resend_Worker.i.

00008   : n (0)
00009   , next_ (next)
00010   , max_sequence_number_ (max_sequence_number)
00011 {
00012 }

ACE_RMCast_Resend_Worker::ACE_RMCast_Resend_Worker const ACE_RMCast_Resend_Worker &    [private]
 


Member Function Documentation

ACE_RMCast_Resend_Worker& ACE_RMCast_Resend_Worker::operator= const ACE_RMCast_Resend_Worker &    [private]
 

int ACE_RMCast_Resend_Worker::work ACE_UINT32 const &    key,
ACE_RMCast::Data const &    item
[virtual]
 

Implements ACE_RMCast_Worker< ACE_UINT32, ACE_RMCast::Data >.

Definition at line 15 of file RMCast_Resend_Worker.cpp.

References ACE_RMCast_Module::data, max_sequence_number_, n, and next_.

00017 {
00018   if (key > this->max_sequence_number_)
00019     return 0;
00020   //ACE_DEBUG ((LM_DEBUG,
00021   //            "RMCast_Resend_Worker::work - message %d resent\n",
00022   //            key));
00023 
00024   ACE_RMCast::Data data = item;
00025   int r = this->next_->data (data);
00026   if (r != 0)
00027     return r;
00028   this->n++;
00029 
00030   return 1; // @@ Stop after the first message...
00031 }


Member Data Documentation

ACE_UINT32 ACE_RMCast_Resend_Worker::max_sequence_number_ [private]
 

Definition at line 37 of file RMCast_Resend_Worker.h.

Referenced by work.

int ACE_RMCast_Resend_Worker::n
 

Definition at line 32 of file RMCast_Resend_Worker.h.

Referenced by ACE_RMCast_Retransmission::resend, ACE_RMCast_Retransmission::resend_all, and work.

ACE_RMCast_Module* ACE_RMCast_Resend_Worker::next_ [private]
 

Definition at line 35 of file RMCast_Resend_Worker.h.

Referenced by work.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:14:17 2003 for ACE_RMCast by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002