Alex Bikfalvi
SimStream Documentation
StreamMessageBootPullResponse.cpp
00001 #include "Headers.h" 00002 #include "StreamMessageBootPullResponse.h" 00003 00004 CStreamMessageBootPullResponse::CStreamMessageBootPullResponse( 00005 __uint32 stream, 00006 __uint32 count 00007 ) : CStreamMessage(CStreamMessage::STREAM_MESSAGE_BOOT_PULL_RESPONSE, (count+1) * 32, stream) 00008 { 00009 assert(count < BOOT_MAX_HOSTS); 00010 this->count = count; 00011 } 00012 00013 CStreamMessageBootPullResponse::~CStreamMessageBootPullResponse() 00014 { 00015 } 00016 00017 CPacket* CStreamMessageBootPullResponse::Copy() 00018 { 00019 CStreamMessageBootPullResponse* packet = new CStreamMessageBootPullResponse(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