X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FDataPacket.hh;h=62e1200a4b2cbef6e92d7fdd19852765b74f3aa6;hb=81ffa1c459b96dd44472bcef37e1e373934ee138;hp=480f3cd853156dec0c224603cbb58cd852d5c8f4;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/DataPacket.hh b/Packets/DataPacket.hh index 480f3cd..62e1200 100644 --- a/Packets/DataPacket.hh +++ b/Packets/DataPacket.hh @@ -1,9 +1,7 @@ -// $Id$ -// -// Copyright (C) 2006 +// Copyright (C) 2007 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) -// Stefan Bund +// Stefan Bund // // 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 @@ -20,60 +18,56 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +/** \file + \brief DataPacket public header */ + #ifndef HH_DataPacket_ #define HH_DataPacket_ 1 // Custom includes +#include "PacketType.hh" #include "Packet.hh" +//#include "DataPacket.mpp" ///////////////////////////////hh.p//////////////////////////////////////// -namespace satcom { -namespace pkf { - - /** \brief Non-interpreted Packet - - A DataPacket is an uninterpreted blob of data. It is terminal - in the sense, that no further packet header may follow after - this packet. A DataPacket implements the abstract Packet - interface and nothing more. - */ - class DataPacket : public Packet - { - public: - /////////////////////////////////////////////////////////////////////////// - // Types - - typedef ptr_t::ptr ptr; - typedef iterator byte_iterator; - - /////////////////////////////////////////////////////////////////////////// +namespace senf { - static void init() {} - static bool check(iterator const & b, iterator const & e) { return true; } + /** \brief Generic payload-only packet - private: - template - DataPacket(Arg const & arg); - - virtual void v_nextInterpreter() const; - virtual void v_finalize(); - virtual void v_dump(std::ostream & os) const; + \par Packet type (typedef): + \ref DataPacket - friend class Packet; - }; + DataPacket is a simple generic packet with just a payload of uninterpreted data. This is the + packet used whenever no more specific packet type can be found for a sub-packet (e.g. as the + payload data of a UDP packet) + \ingroup packet_module + */ + struct DataPacketType : public PacketTypeBase + {}; -}} + /** \brief Generic payload-only packet typedef */ + typedef ConcretePacket DataPacket; +} ///////////////////////////////hh.e//////////////////////////////////////// +#endif +#if !defined(SENF_PACKETS_DECL_ONLY) && !defined(HH_DataPacket_impl_) +#define HH_DataPacket_impl_ //#include "DataPacket.cci" //#include "DataPacket.ct" -#include "DataPacket.cti" +//#include "DataPacket.cti" #endif // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// comment-column: 40 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" +// compile-command: "scons -u test" // End: +