Commit c4a68c4f authored by Steven Murray's avatar Steven Murray
Browse files

Removed MessageHeader from tapeserver/castor

parent c0912d47
......@@ -4,5 +4,4 @@ include_directories(${PROJECT_SOURCE_DIR}/tapeserver)
include_directories(${PROJECT_SOURCE_DIR}/tapeserver/h)
add_library (ctalegacymsg
TapeLabelRqstMsgBody.cpp
MessageHeader.cpp)
TapeLabelRqstMsgBody.cpp)
/******************************************************************************
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#include "castor/legacymsg/MessageHeader.hpp"
//------------------------------------------------------------------------------
// constructor
//------------------------------------------------------------------------------
castor::legacymsg::MessageHeader::MessageHeader() throw():
magic(0),
reqType(0),
lenOrStatus(0) {
}
/******************************************************************************
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*
* @author Castor Dev team, castor-dev@cern.ch
*****************************************************************************/
#pragma once
#include <stdint.h>
namespace castor {
namespace legacymsg {
/**
* A message header
*/
struct MessageHeader {
/**
* The magic number of the message.
*/
uint32_t magic;
/**
* The request type of the message.
*/
uint32_t reqType;
/**
* The length of the message body in bytes if this is the header of any
* message other than an acknowledge message. If this is the header of
* an acknowledge message then there is no message body and this field is
* used to pass the status of the acknowledge.
*/
uint32_t lenOrStatus;
/**
* Constructor.
*
* Sets all integer member-variables to 0.
*/
MessageHeader() throw();
}; // struct MessageHeader
} // namespace legacymsg
} // namespace castor
......@@ -22,7 +22,6 @@
*****************************************************************************/
#include "castor/io/io.hpp"
#include "castor/legacymsg/MessageHeader.hpp"
#include "common/log/LogContext.hpp"
#include "common/threading/System.hpp"
#include "castor/tape/tapeserver/daemon/LabelSession.hpp"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment