Alex Bikfalvi
SimStream Documentation
PacketConnectionMessage.h
00001 #pragma once 00002 00003 #include "PacketConnection.h" 00004 00005 #define PACKET_INVALID_CONNECTION 0xFFFFFFFF 00006 #define PACKET_INVALID_CONNECTION_ENTRY 0xFFFFFFFF 00007 00008 class CPacketConnectionMessage : public CPacketConnection 00009 { 00010 public: 00011 enum ETypeMessage 00012 { 00013 OPEN = 0, 00014 OPEN_ACK = 1, 00015 CLOSE = 2, 00016 CLOSE_ACK = 3, 00017 CLOSE_ACK_ACK = 4 00018 }; 00019 00020 private: 00021 // Message type 00022 ETypeMessage typeMessage; 00023 00024 public: 00025 CPacketConnectionMessage( 00026 __uint32 flow, 00027 __uint32 src, 00028 __uint32 srcEntry, 00029 __time timeTx 00030 ); 00031 CPacketConnectionMessage( 00032 __uint32 flow, 00033 __uint32 src, 00034 __uint32 dst, 00035 __uint32 srcEntry, 00036 __uint32 dstEntry, 00037 ETypeMessage type, 00038 __time timeTx, 00039 __time timeRx = -1 00040 ); 00041 virtual ~CPacketConnectionMessage() { } 00042 00043 inline ETypeMessage TypeMessage() { return this->typeMessage; } 00044 00045 virtual CPacket* Copy(); 00046 };
Last updated: February 8, 2011