Alex Bikfalvi
SimStream Documentation
PacketConnectionFeedback.h
00001 #pragma once 00002 00003 #include "PacketConnection.h" 00004 00005 class CPacketConnectionFeedback : public CPacketConnection 00006 { 00007 private: 00008 __bitrate rateRecv; 00009 double rateLoss; 00010 00011 // Acknowledged packets 00012 __uint64 ack; 00013 __uint32 ackSeq; 00014 00015 // Lost packets 00016 __uint64 lost; 00017 __uint32 lostSeq; 00018 00019 public: 00020 CPacketConnectionFeedback( 00021 __uint32 flow, 00022 __uint32 src, 00023 __uint32 dst, 00024 __uint32 srcEntry, 00025 __uint32 dstEntry, 00026 __time timeTx, 00027 __time timeRx, 00028 __time timeDelay, 00029 __bitrate rateRecv, 00030 double rateLoss, 00031 __uint64 ack = 0, 00032 __uint32 ackSeq = 0, 00033 __uint64 lost = 0, 00034 __uint32 lostSeq = 0 00035 ); 00036 virtual ~CPacketConnectionFeedback() { } 00037 00038 inline __bitrate RateRecv() { return this->rateRecv; } 00039 inline double RateLoss() { return this->rateLoss; } 00040 00041 inline __uint64 Ack() { return this->ack; } 00042 inline __uint64 Lost() { return this->lost; } 00043 00044 inline __uint32 AckSeq() { return this->ackSeq; } 00045 inline __uint32 LostSeq() { return this->lostSeq; } 00046 00047 virtual CPacket* Copy(); 00048 };
Last updated: February 8, 2011