X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FUDPPacket.hh;h=2f54e93f487324f8b67ae421805ad4bf77dff953;hb=9a988902090d28007578e93bffd809f6bd913155;hp=54cea7fb2e1d7e97633139496481cdb37aeb5c8b;hpb=ac6a813d9d99f7add4e13aff7a4bcd314d5604a6;p=senf.git diff --git a/Packets/UDPPacket.hh b/Packets/UDPPacket.hh index 54cea7f..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 @@ -34,7 +34,7 @@ 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: