Packets: Add StringParser ostream operation
[senf.git] / Packets / Packet.cc
index 02cc5ec..06d6463 100644 (file)
@@ -1,6 +1,8 @@
-// Copyright (C) 2007 
-// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
-// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
+// $Id$
+//
+// 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
 /** \file
     \brief Packet non-inline non-template implementation */
 
-#include "PacketInterpreter.hh"
-#include "Packet.hh"
 //#include "Packet.ih"
 
 // Custom includes
-#include "DataPacket.hh"
+#include "Packets.hh"
 
 //#include "Packet.mpp"
 #define prefix_
@@ -50,10 +50,10 @@ prefix_ senf::Packet senf::Packet::checkLast()
     const
 {
     Packet p (*this);
-    Packet n (p.next());
+    Packet n (p.next(nothrow));
     while (n) {
         p = n;
-        n = p.next();
+        n = p.next(nothrow);
     }
     return p;
 }