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

RMCast_Fork.h

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: RMCast_Fork.h,v 1.1.1.1 2001/12/04 14:33:17 chad Exp $
00003 
00004 #ifndef ACE_RMCAST_FORK_H
00005 #define ACE_RMCAST_FORK_H
00006 #include "ace/pre.h"
00007 
00008 #include "RMCast_Module.h"
00009 
00010 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00011 # pragma once
00012 #endif /* ACE_LACKS_PRAGMA_ONCE */
00013 
00014 /// Fork messages to multiple destinations
00015 /**
00016  * In some instances the messages must be sent to multiple
00017  * destinations, this module is a generic component to duplicate such
00018  * messages.
00019  */
00020 class ACE_RMCast_Export ACE_RMCast_Fork : public ACE_RMCast_Module
00021 {
00022 public:
00023   //! Constructor
00024   ACE_RMCast_Fork (void);
00025 
00026   //! Destructor
00027   virtual ~ACE_RMCast_Fork (void);
00028 
00029   /// Set the control module, all incoming control messages go to it
00030   void secondary (ACE_RMCast_Module *module);
00031 
00032   /// Return the current control module
00033   ACE_RMCast_Module *secondary (void) const;
00034 
00035   virtual int open (void);
00036   virtual int close (void);
00037   virtual int data (ACE_RMCast::Data &);
00038   virtual int poll (ACE_RMCast::Poll &);
00039   virtual int ack_join (ACE_RMCast::Ack_Join &);
00040   virtual int ack_leave (ACE_RMCast::Ack_Leave &);
00041   virtual int ack (ACE_RMCast::Ack &);
00042   virtual int join (ACE_RMCast::Join &);
00043   virtual int leave (ACE_RMCast::Leave &);
00044 
00045 private:
00046   /// The control module
00047   ACE_RMCast_Module *secondary_;
00048 };
00049 
00050 #if defined (__ACE_INLINE__)
00051 #include "RMCast_Fork.i"
00052 #endif /* __ACE_INLINE__ */
00053 
00054 #include "ace/post.h"
00055 #endif /* ACE_RMCAST_FORK_H */

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