fastcgi++
|
00001 00002 /*************************************************************************** 00003 * Copyright (C) 2007 Eddie Carle [eddie@erctech.org] * 00004 * * 00005 * This file is part of fastcgi++. * 00006 * * 00007 * fastcgi++ is free software: you can redistribute it and/or modify it * 00008 * under the terms of the GNU Lesser General Public License as published * 00009 * by the Free Software Foundation, either version 3 of the License, or (at * 00010 * your option) any later version. * 00011 * * 00012 * fastcgi++ is distributed in the hope that it will be useful, but WITHOUT * 00013 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * 00014 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public * 00015 * License for more details. * 00016 * * 00017 * You should have received a copy of the GNU Lesser General Public License * 00018 * along with fastcgi++. If not, see <http://www.gnu.org/licenses/>. * 00019 ****************************************************************************/ 00020 00021 #ifndef MESSAGE_HPP 00022 #define MESSAGE_HPP 00023 00024 #include <boost/shared_array.hpp> 00025 00026 namespace Fastcgipp 00027 { 00029 00038 struct Message 00039 { 00040 Message(const int type_): type(type_) {} 00041 Message(): type(0) {} 00043 int type; 00045 size_t size; 00047 boost::shared_array<char> data; 00048 }; 00049 } 00050 00051 #endif