Alex Bikfalvi
SimStream Documentation
PacketConnectionMessage.cpp
00001 #include "Headers.h" 00002 #include "PacketConnectionMessage.h" 00003 00004 CPacketConnectionMessage::CPacketConnectionMessage( 00005 __uint32 flow, 00006 __uint32 src, 00007 __uint32 srcEntry, 00008 __time timeTx 00009 ) : CPacketConnection(136, CPacketConnection::MESSAGE, flow, src, PACKET_INVALID_CONNECTION, srcEntry, PACKET_INVALID_CONNECTION_ENTRY, CPacket::PACKET_TOS_HIGH, timeTx) 00010 { 00011 this->typeMessage = OPEN; 00012 } 00013 00014 CPacketConnectionMessage::CPacketConnectionMessage( 00015 __uint32 flow, 00016 __uint32 src, 00017 __uint32 dst, 00018 __uint32 srcEntry, 00019 __uint32 dstEntry, 00020 ETypeMessage type, 00021 __time timeTx, 00022 __time timeRx 00023 ) : CPacketConnection(136, CPacketConnection::MESSAGE, flow, src, dst, srcEntry, dstEntry, CPacket::PACKET_TOS_HIGH, timeTx, timeRx) 00024 { 00025 this->typeMessage = type; 00026 } 00027 00028 CPacket* CPacketConnectionMessage::Copy() 00029 { 00030 CPacketConnectionMessage* packet = new CPacketConnectionMessage( 00031 this->flow, 00032 this->src, 00033 this->dst, 00034 this->srcEntry, 00035 this->dstEntry, 00036 this->typeMessage, 00037 this->timeTx, 00038 this->timeRx); 00039 00040 return packet; 00041 }
Last updated: February 8, 2011