// $Id$
//
-// Copyright (C) 2006
+// Copyright (C) 2006
// Fraunhofer Institut fuer offene Kommunikationssysteme (FOKUS)
// Kompetenzzentrum fuer Satelitenkommunikation (SatCom)
// Stefan Bund <stefan.bund@fokus.fraunhofer.de>
//#include "UDPPacket.mpp"
///////////////////////////////hh.p////////////////////////////////////////
-namespace satcom {
-namespace pkf {
-
+namespace senf {
+
+ // See RFC768
template <class Iterator=nil, class IPacket=nil>
struct Parse_UDP : public ParserBase<Iterator,IPacket>
{
///////////////////////////////////////////////////////////////////////////
- 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 ); }
};
class UDPPacket
- : public Packet,
+ : public Packet,
public Parse_UDP<Packet::iterator, UDPPacket>
{
public:
friend class Packet;
};
-}}
+}
///////////////////////////////hh.e////////////////////////////////////////
\f
// Local Variables:
// mode: c++
-// c-file-style: "satcom"
+// fill-column: 100
+// c-file-style: "senf"
+// indent-tabs-mode: nil
+// ispell-local-dictionary: "american"
// End: