X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FUDPPacket.hh;h=2f54e93f487324f8b67ae421805ad4bf77dff953;hb=85ab07d100a382467a42e19d741d403a7a96c951;hp=078a42477f0177a56d0b8f24d22b495cdd244f65;hpb=3e42ecb22121f2e6df86b27bea73f890384a4ee4;p=senf.git diff --git a/Packets/UDPPacket.hh b/Packets/UDPPacket.hh index 078a424..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 @@ -33,7 +33,7 @@ ///////////////////////////////hh.p//////////////////////////////////////// namespace senf { - + // See RFC768 template struct Parse_UDP : public ParserBase @@ -49,8 +49,8 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// - 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 senf { }; class UDPPacket - : public Packet, + : public Packet, public Parse_UDP { public: @@ -92,5 +92,8 @@ namespace senf { // Local Variables: // mode: c++ +// fill-column: 100 // c-file-style: "senf" +// indent-tabs-mode: nil +// ispell-local-dictionary: "american" // End: