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

RMCast_Sequencer.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: RMCast_Sequencer.h,v 1.1.1.1 2001/12/04 14:33:17 chad Exp $
00003 
00004 // ============================================================================
00005 //
00006 // = LIBRARY
00007 //    ace/RMCast
00008 //
00009 // = AUTHOR
00010 //    Carlos O'Ryan <coryan@uci.edu>
00011 //
00012 // ============================================================================
00013 
00014 #ifndef ACE_RMCAST_SEQUENCER_H
00015 #define ACE_RMCAST_SEQUENCER_H
00016 #include "ace/pre.h"
00017 
00018 #include "RMCast_Module.h"
00019 #include "ace/Synch.h"
00020 
00021 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00022 # pragma once
00023 #endif /* ACE_LACKS_PRAGMA_ONCE */
00024 
00025 /// Assign sequence numbers to outgoing messages
00026 /**
00027  * On the sender side we must assign sequence numbers to the messages
00028  * <B>before</B> they are put in the retransmission queue.
00029  */
00030 class ACE_RMCast_Export ACE_RMCast_Sequencer : public ACE_RMCast_Module
00031 {
00032 public:
00033   /// Constructor
00034   ACE_RMCast_Sequencer (void);
00035 
00036   /// Destructor
00037   virtual ~ACE_RMCast_Sequencer (void);
00038 
00039   virtual int data (ACE_RMCast::Data &);
00040 
00041 protected:
00042   /// Create the sequence numbers
00043   ACE_UINT32 sequence_number_generator_;
00044 
00045   /// Synchronization
00046   ACE_SYNCH_MUTEX mutex_;
00047 };
00048 
00049 #if defined (__ACE_INLINE__)
00050 #include "RMCast_Sequencer.i"
00051 #endif /* __ACE_INLINE__ */
00052 
00053 #include "ace/post.h"
00054 #endif /* ACE_RMCAST_SEQUENCER_H */

Generated on Mon Jun 16 13:12:38 2003 for ACE_RMCast by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002