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

ACE_RMCast_Sequencer Class Reference

Assign sequence numbers to outgoing messages. More...

#include <RMCast_Sequencer.h>

Inheritance diagram for ACE_RMCast_Sequencer:

Inheritance graph
Collaboration diagram for ACE_RMCast_Sequencer:

Collaboration graph
List of all members.

Public Methods

 ACE_RMCast_Sequencer (void)
 Constructor. More...

virtual ~ACE_RMCast_Sequencer (void)
 Destructor. More...

virtual int data (ACE_RMCast::Data &)
 Push data through the stack. More...

Protected Attributes

ACE_UINT32 sequence_number_generator_
 Create the sequence numbers. More...

 Synchronization. More...

Detailed Description

Assign sequence numbers to outgoing messages.

On the sender side we must assign sequence numbers to the messages before they are put in the retransmission queue.

Definition at line 30 of file RMCast_Sequencer.h.

Constructor & Destructor Documentation

ACE_INLINE ACE_RMCast_Sequencer::ACE_RMCast_Sequencer void   


Definition at line 4 of file RMCast_Sequencer.i.

00005   :  sequence_number_generator_ (0)
00006 {
00007 }

ACE_RMCast_Sequencer::~ACE_RMCast_Sequencer void    [virtual]


Definition at line 13 of file RMCast_Sequencer.cpp.

00014 {
00015 }

Member Function Documentation

int ACE_RMCast_Sequencer::data ACE_RMCast::Data   [virtual]

Push data through the stack.

Reimplemented from ACE_RMCast_Module.

Definition at line 18 of file RMCast_Sequencer.cpp.

References ACE_GUARD_RETURN, ACE_SYNCH_MUTEX, ACE_RMCast_Module::data, ACE_RMCast::Data::sequence_number, and sequence_number_generator_.

00019 {
00020   {
00021     ACE_GUARD_RETURN (ACE_SYNCH_MUTEX, ace_mon, this->mutex_, -1);
00022     data.sequence_number = this->sequence_number_generator_++;
00023   }
00024   return this->ACE_RMCast_Module::data (data);
00025 }

Member Data Documentation

ACE_SYNCH_MUTEX ACE_RMCast_Sequencer::mutex_ [protected]


Definition at line 46 of file RMCast_Sequencer.h.

ACE_UINT32 ACE_RMCast_Sequencer::sequence_number_generator_ [protected]

Create the sequence numbers.

Definition at line 43 of file RMCast_Sequencer.h.

Referenced by data.

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