Alex Bikfalvi
SimStream Documentation
PacketConnectionData.cpp
00001 #include "Headers.h" 00002 #include "PacketConnectionData.h" 00003 00004 CPacketConnectionData::CPacketConnectionData( 00005 __uint32 flow, 00006 __uint32 src, 00007 __uint32 dst, 00008 __uint32 srcEntry, 00009 __uint32 dstEntry, 00010 CPacket* payload, 00011 __uint32 sequence, 00012 __time timeTx, 00013 __time rtt 00014 ) : CPacketConnection(payload->Size() + 96, CPacketConnection::DATA, flow, src, dst, srcEntry, dstEntry, CPacket::PACKET_TOS_LOW, timeTx) 00015 { 00016 this->payload = payload; 00017 this->sequence = sequence; 00018 this->rtt = rtt; 00019 } 00020 00021 CPacket* CPacketConnectionData::Copy() 00022 { 00023 CPacketConnectionData* packet = new CPacketConnectionData( 00024 this->flow, 00025 this->src, 00026 this->dst, 00027 this->srcEntry, 00028 this->dstEntry, 00029 this->payload->Copy(), 00030 this->sequence, 00031 this->timeTx, 00032 this->rtt); 00033 00034 return packet; 00035 }
Last updated: February 8, 2011