00001 #include "Headers.h"
00002 #include "Packet.h"
00003
00004 CPacket::CPacket(
00005 __uint32 size,
00006 CPacket* payload,
00007 ETypeOfService tos
00008 )
00009 {
00010 this->size = size;
00011 this->payload = payload;
00012 this->tos = tos;
00013 }
00014
00015 void CPacket::Delete()
00016 {
00017 if(this->payload)
00018 {
00019 this->payload->Delete();
00020 delete this->payload;
00021 }
00022 }