Alex Bikfalvi
SimStream Documentation
PacketConnection.h
00001 #pragma once 00002 00003 #include "Packet.h" 00004 00005 class CPacketConnection : public CPacket 00006 { 00007 public: 00008 enum ETypeConnection 00009 { 00010 DATA = 0, 00011 FEEDBACK = 1, 00012 MESSAGE = 2 00013 }; 00014 00015 protected: 00016 // Packet type 00017 ETypeConnection typeConnection; 00018 00019 // Connections 00020 __uint32 src; 00021 __uint32 dst; 00022 __uint32 srcEntry; 00023 __uint32 dstEntry; 00024 00025 // Stream 00026 __uint32 flow; 00027 00028 // Flow 00029 __time timeTx; 00030 __time timeRx; 00031 __time timeDelay; 00032 00033 public: 00034 CPacketConnection( 00035 __uint32 size, 00036 ETypeConnection typeConnection, 00037 __uint32 flow, 00038 __uint32 src, 00039 __uint32 dst, 00040 __uint32 srcEntry, 00041 __uint32 dstEntry, 00042 ETypeOfService tos, 00043 __time timeTx, 00044 __time timeRx = -1, 00045 __time timeDelay = 0 00046 ); 00047 virtual ~CPacketConnection() { } 00048 00049 virtual EPacketType Type() { return PACKET_TYPE_CONNECTION; } 00050 ETypeConnection TypeConnection() { return this->typeConnection; } 00051 00052 inline __uint32 Src() { return this->src; } 00053 inline __uint32 Dst() { return this->dst; } 00054 inline __uint32 SrcEntry() { return this->srcEntry; } 00055 inline __uint32 DstEntry() { return this->dstEntry; } 00056 inline __uint32 Flow() { return this->flow; } 00057 00058 inline __time TimeTx() { return this->timeTx; } 00059 inline __time TimeRx() { return this->timeRx; } 00060 inline __time TimeDelay() { return this->timeDelay; } 00061 };
Last updated: February 8, 2011