Search:

SENF Extensible Network Framework

  • Home
  • Download
  • Wiki
  • BerliOS
  • ChangeLog
  • Browse SVN
  • Bug Tracker
  • Overview
  • Examples
  • HowTos
  • Glossary
  • PPI
  • Packets
  • Scheduler
  • Socket
  • Utils
  • Console
  • Daemon
  • Logger
  • Termlib
  • Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

PacketTypes.hh

Go to the documentation of this file.
00001 // $Id: PacketTypes.hh 1742 2010-11-04 14:51:56Z g0dil $
00002 //
00003 // Copyright (C) 2007
00004 // Fraunhofer (FOKUS)
00005 // Competence Center NETwork research (NET), St. Augustin, GERMANY
00006 //     Stefan Bund <g0dil@berlios.de>
00007 //
00008 // This program is free software; you can redistribute it and/or modify
00009 // it under the terms of the GNU General Public License as published by
00010 // the Free Software Foundation; either version 2 of the License, or
00011 // (at your option) any later version.
00012 //
00013 // This program is distributed in the hope that it will be useful,
00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 // GNU General Public License for more details.
00017 //
00018 // You should have received a copy of the GNU General Public License
00019 // along with this program; if not, write to the
00020 // Free Software Foundation, Inc.,
00021 // 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00022 
00026 #ifndef HH_SENF_Packets_PacketTypes_
00027 #define HH_SENF_Packets_PacketTypes_ 1
00028 
00029 // Custom includes
00030 #include <vector>
00031 #include <boost/intrusive_ptr.hpp>
00032 #include <boost/cstdint.hpp>
00033 #include <senf/boost_intrusive/ilist.hpp>
00034 #include <senf/boost_intrusive/ilist_hook.hpp>
00035 
00036 //#include "PacketTypes.mpp"
00037 //-/////////////////////////////////////////////////////////////////////////////////////////////////
00038 
00039 namespace senf {
00040 
00041     class PacketData;
00042     class PacketInterpreterBase;
00043 
00044 namespace detail {
00045 
00046     class PacketImpl;
00047 
00048 namespace packet {
00049 
00054     template <class T>
00055     struct smart_pointer {
00056         typedef boost::intrusive_ptr<T> ptr_t;
00057     };
00058 
00059     struct interpreter_list_tag;
00060     typedef boost::intrusive::ilist_base_hook<interpreter_list_tag> interpreter_list_base;
00061     typedef interpreter_list_base::value_traits<PacketInterpreterBase> interpreter_list_type;
00062 
00063     typedef boost::intrusive::ilist<interpreter_list_type,false> interpreter_list;
00064 
00065     typedef boost::uint8_t byte;
00066     typedef std::vector<byte> raw_container;
00067     typedef raw_container::size_type size_type;
00068     typedef raw_container::difference_type difference_type;
00069 
00070     typedef raw_container::iterator iterator;
00071     typedef raw_container::const_iterator const_iterator;
00072     typedef long refcount_t; // This is long since boost uses long for refcounts .. hmm ..
00073 
00074 namespace test {
00075 
00076     class TestDriver;
00077 
00078 }}}}
00079 
00080 //-/////////////////////////////////////////////////////////////////////////////////////////////////
00081 #endif
00082 #if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketTypes_i_)
00083 #define HH_SENF_Packets_PacketTypes_i_
00084 //#include "PacketTypes.cci"
00085 //#include "PacketTypes.ct"
00086 //#include "PacketTypes.cti"
00087 #endif
00088 
00089 
00090 // Local Variables:
00091 // mode: c++
00092 // fill-column: 100
00093 // c-file-style: "senf"
00094 // indent-tabs-mode: nil
00095 // ispell-local-dictionary: "american"
00096 // compile-command: "scons -u test"
00097 // comment-column: 40
00098 // End:

Contact: senf-dev@lists.berlios.de | © 2006-2010 Fraunhofer Institute for Open Communication Systems, Network Research