Alex Bikfalvi
SimStream Documentation
StreamMessageBootPushResponse.cpp
00001 #include "Headers.h" 00002 #include "StreamMessageBootPushResponse.h" 00003 00004 CStreamMessageBootPushResponse::CStreamMessageBootPushResponse( 00005 __uint32 stream, 00006 __uint32 count 00007 ) : CStreamMessage(CStreamMessage::STREAM_MESSAGE_BOOT_PUSH_RESPONSE, (count+1) * 32, stream) 00008 { 00009 assert(count < BOOT_MAX_HOSTS); 00010 this->count = count; 00011 } 00012 00013 CStreamMessageBootPushResponse::~CStreamMessageBootPushResponse() 00014 { 00015 } 00016 00017 CPacket* CStreamMessageBootPushResponse::Copy() 00018 { 00019 CStreamMessageBootPushResponse* packet = new CStreamMessageBootPushResponse(this->stream, this->count); 00020 00021 for(__uint32 host = 0; host < this->count; host++) 00022 packet->hosts[host] = this->hosts[host]; 00023 00024 return packet; 00025 }
Last updated: February 8, 2011