X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FUDPPacket.hh;h=2f54e93f487324f8b67ae421805ad4bf77dff953;hb=9a988902090d28007578e93bffd809f6bd913155;hp=75cdf79b0441917e4939b12dd29034fa3aa083bb;hpb=c52cd7d87dbb525c1267aad27391b8b7365dbb57;p=senf.git diff --git a/Packets/UDPPacket.hh b/Packets/UDPPacket.hh index 75cdf79..2f54e93 100644 --- a/Packets/UDPPacket.hh +++ b/Packets/UDPPacket.hh @@ -1,6 +1,6 @@ // $Id$ // -// Copyright (C) 2006 +// Copyright (C) 2006 // Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS) // Kompetenzzentrum fuer Satelitenkommunikation (SatCom) // Stefan Bund @@ -32,9 +32,9 @@ //#include "UDPPacket.mpp" ///////////////////////////////hh.p//////////////////////////////////////// -namespace satcom { -namespace pkf { - +namespace senf { + + // See RFC768 template struct Parse_UDP : public ParserBase { @@ -49,8 +49,8 @@ namespace pkf { /////////////////////////////////////////////////////////////////////////// - typedef Parse_UInt16 < Iterator > Parse_16bit; - + typedef Parse_UInt16 < Iterator > Parse_16bit; + Parse_16bit source() const { return Parse_16bit (this->i() ); } Parse_16bit destination() const { return Parse_16bit (this->i() + 2 ); } Parse_16bit length() const { return Parse_16bit (this->i() + 4 ); } @@ -59,7 +59,7 @@ namespace pkf { }; class UDPPacket - : public Packet, + : public Packet, public Parse_UDP { public: @@ -80,7 +80,7 @@ namespace pkf { friend class Packet; }; -}} +} ///////////////////////////////hh.e//////////////////////////////////////// @@ -92,5 +92,8 @@ namespace pkf { // Local Variables: // mode: c++ -// c-file-style: "satcom" +// fill-column: 100 +// c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: