00001 #pragma once
00002
00003 #include "Packet.h"
00004
00005 #define PACKET_UDP_HEADER 64
00006
00007 class CPacketUdp : public CPacket
00008 {
00009 protected:
00010 __uint16 src;
00011 __uint16 dst;
00012
00013 public:
00014 CPacketUdp(
00015 __uint16 src,
00016 __uint16 dst,
00017 CPacket* payload
00018 );
00019 virtual ~CPacketUdp() { }
00020
00021 inline __uint16 Src() { return this->src; }
00022 inline __uint16 Dst() { return this->dst; }
00023
00024 virtual inline EPacketType Type() { return PACKET_TYPE_UDP; }
00025 virtual CPacket* Copy();
00026 };