Alex Bikfalvi
SimStream Documentation
PacketConnectionFeedback.cpp
00001 #include "Headers.h" 00002 #include "PacketConnectionFeedback.h" 00003 00004 CPacketConnectionFeedback::CPacketConnectionFeedback( 00005 __uint32 flow, 00006 __uint32 src, 00007 __uint32 dst, 00008 __uint32 srcEntry, 00009 __uint32 dstEntry, 00010 __time timeTx, 00011 __time timeRx, 00012 __time timeDelay, 00013 __bitrate rateRecv, 00014 double rateLoss, 00015 __uint64 ack, 00016 __uint32 ackSeq, 00017 __uint64 lost, 00018 __uint32 lostSeq 00019 ) : CPacketConnection(32, CPacketConnection::FEEDBACK, flow, src, dst, srcEntry, dstEntry, CPacket::PACKET_TOS_HIGH, timeTx, timeRx, timeDelay) 00020 { 00021 this->rateRecv = rateRecv; 00022 this->rateLoss = rateLoss; 00023 00024 this->ack = ack; 00025 this->ackSeq = ackSeq; 00026 00027 this->lost = lost; 00028 this->lostSeq = lostSeq; 00029 } 00030 00031 CPacket* CPacketConnectionFeedback::Copy() 00032 { 00033 CPacketConnectionFeedback* packet = new CPacketConnectionFeedback( 00034 this->flow, 00035 this->src, 00036 this->dst, 00037 this->srcEntry, 00038 this->dstEntry, 00039 this->timeTx, 00040 this->timeRx, 00041 this->timeDelay, 00042 this->rateRecv, 00043 this->rateLoss, 00044 this->ack, 00045 this->ackSeq, 00046 this->lost, 00047 this->lostSeq 00048 ); 00049 00050 return packet; 00051 }
Last updated: February 8, 2011