Packets: Add descriptive dump() output to DataPacket
[senf.git] / Packets / DataPacket.hh
index 8a4f818..ae2b39e 100644 (file)
@@ -1,8 +1,8 @@
 // $Id$
 //
-// Copyright (C) 2007 
-// Fraunhofer Institute for Open Communication Systems (FOKUS) 
-// Competence Center NETwork research (NET), St. Augustin, GERMANY 
+// Copyright (C) 2007
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
 //     Stefan Bund <g0dil@berlios.de>
 //
 // This program is free software; you can redistribute it and/or modify
@@ -47,7 +47,10 @@ namespace senf {
         \ingroup packet_module
      */
     struct DataPacketType : public PacketTypeBase
-    {};
+    {
+        typedef ConcretePacket<DataPacketType> packet;
+        static void dump(packet p, std::ostream & os);
+    };
 
     /** \brief Generic payload-only packet typedef */
     typedef ConcretePacket<DataPacketType> DataPacket;