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

ACE_RMCast_Ack_Worker Class Reference

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

#include <RMCast_Ack_Worker.h>

Inheritance diagram for ACE_RMCast_Ack_Worker:

Inheritance graph
Collaboration diagram for ACE_RMCast_Ack_Worker:

Collaboration graph
List of all members.

Public Methods

 ACE_RMCast_Ack_Worker (ACE_RMCast::Ack &ack, ACE_RMCast_Retransmission::Messages::Write_Guard &g, ACE_RMCast_Retransmission::Messages *messages)
virtual int work (ACE_UINT32 const &key, ACE_RMCast::Data const &item)

Private Methods

 ACE_RMCast_Ack_Worker (const ACE_RMCast_Ack_Worker &)
ACE_RMCast_Ack_Worker & operator= (const ACE_RMCast_Ack_Worker &)

Private Attributes

ACE_RMCast_Retransmission::Messages::Write_Guard & ace_mon_

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 19 of file RMCast_Ack_Worker.h.

Constructor & Destructor Documentation

ACE_INLINE ACE_RMCast_Ack_Worker::ACE_RMCast_Ack_Worker ACE_RMCast::Ack   ack,
ACE_RMCast_Retransmission::Messages::Write_Guard &    g,
ACE_RMCast_Retransmission::Messages   messages

Definition at line 5 of file RMCast_Ack_Worker.i.

References ACE_RMCast_Retransmission::Messages.

00008   : ack_ (ack)
00009   , ace_mon_ (g)
00010   , messages_ (messages)
00011 {
00012 }

ACE_RMCast_Ack_Worker::ACE_RMCast_Ack_Worker const ACE_RMCast_Ack_Worker &    [private]

Member Function Documentation

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

int ACE_RMCast_Ack_Worker::work ACE_UINT32 const &    key,
ACE_RMCast::Data const &    item

Implements ACE_RMCast_Worker< ACE_UINT32, ACE_RMCast::Data >.

Definition at line 15 of file RMCast_Ack_Worker.cpp.

References ack_, messages_, ACE_RMCast::Ack::next_expected, ACE_RMCast::Data::payload, and ACE_Message_Block::release.

00017 {
00018   if (key >= this->ack_.next_expected)
00019     return 0;
00020   // ACE_DEBUG ((LM_DEBUG,
00021   //            "  Retransmission::ack - message %d erased\n",
00022   //            key));
00023   ACE_Message_Block::release (item.payload);
00024   return this->messages_->unbind_i (this->ace_mon_, key);
00025 }

Member Data Documentation

ACE_RMCast_Retransmission::Messages::Write_Guard& ACE_RMCast_Ack_Worker::ace_mon_ [private]

Definition at line 37 of file RMCast_Ack_Worker.h.

ACE_RMCast::Ack& ACE_RMCast_Ack_Worker::ack_ [private]

Definition at line 35 of file RMCast_Ack_Worker.h.

Referenced by work.

ACE_RMCast_Retransmission::Messages* ACE_RMCast_Ack_Worker::messages_ [private]

Definition at line 39 of file RMCast_Ack_Worker.h.

Referenced by work.

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