Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

QuorumBuilderAct.h

00001 /*
00002  * Copyright 2003 Michael A. Marsh, Cornell University. All rights reserved.
00003  * This software is released under the modified BSD license.
00004  * See the file LICENSE in the top-level directory for details.
00005  */
00006 //
00007 // $Id: QuorumBuilderAct.h,v 1.3 2004/05/19 15:56:58 mmarsh Exp $
00008 //
00009 // $Log: QuorumBuilderAct.h,v $
00010 // Revision 1.3  2004/05/19 15:56:58  mmarsh
00011 // *** empty log message ***
00012 //
00013 // Revision 1.2  2003/11/04 22:31:51  mmarsh
00014 // *** empty log message ***
00015 //
00016 //
00017 
00018 #ifndef __CODEX_SERVER_QUORUMBUILDERACT_H__
00019 #define __CODEX_SERVER_QUORUMBUILDERACT_H__
00020 
00021 #include "CODEX_Events/Activity.h"
00022 #include "ServerState.h"
00023 
00024 namespace CODEX_Server
00025 {
00026    class QuorumBuilderEvent;
00027    class QuorumBuilderExpectNonceEvent;
00028 
00039    class QuorumBuilderAct : public CODEX_Events::Activity
00040    {
00041       public :
00046          QuorumBuilderAct( CODEX_Events::DeadPileType& deadPile,
00047                            CODEX_Events::QType& eventQueue );
00048 
00050          virtual ~QuorumBuilderAct();
00051 
00061          bool handler( QuorumBuilderEvent& event );
00062 
00074          bool handler( QuorumBuilderExpectNonceEvent& event );
00075 
00076       private :
00077          typedef CODEX_Quorum::AsynchronousRemoteServer RSType;
00078 
00079          RSType*  m_pending[ ServerState::nServers ];
00080    };
00081 
00082 }
00083 
00084 #endif /* __CODEX_SERVER_QUORUMBUILDERACT_H__ */

Generated on Wed Jun 2 16:32:55 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18