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: FailureEvent.cc,v 1.3 2004/05/19 15:56:23 mmarsh Exp $ 00008 // 00009 // $Log: FailureEvent.cc,v $ 00010 // Revision 1.3 2004/05/19 15:56:23 mmarsh 00011 // Added copyright and license statements. 00012 // 00013 // Revision 1.2 2003/11/04 22:31:45 mmarsh 00014 // *** empty log message *** 00015 // 00016 // 00017 00018 #include "FailureEvent.h" 00019 #include "StateInfo.h" 00020 #include "Message.h" 00021 00022 using namespace CODEX_APSS; 00023 00024 FailureEvent::FailureEvent( CODEX_Events::Activity* source, 00025 CODEX_Server::ServerResponseHandler* destination, 00026 const CODEX_Server::RoutingInfo& ri ) : 00027 CODEX_Server::ServerResponseEvent( source, 00028 destination, 00029 CODEX_Quorum::Message(), 00030 0 ) 00031 { 00032 unsigned char server[CODEX_Server::ServerState::nSID]; 00033 memcpy( server, ri.server(), CODEX_Server::ServerState::nSID ); 00034 server[0] &= ~(CODEX_Server::ServerState::OutgoingMask); 00035 m_server = server[0]; 00036 m_message.fill( server, CODEX_Server::ServerState::nSID ); 00037 m_message.fill( ri.seqNum(), CODEX_Server::ServerState::nMID ); 00038 m_message.fill( StateInfo::instance()->domain() ); 00039 m_message.fill( kBadRequest ); 00040 }
1.2.18