Alex Bikfalvi
SimStream Documentation
StreamMessageBootPushSelectResponse.h
00001 #pragma once 00002 00003 #include "StreamMessage.h" 00004 #include "Address.h" 00005 00006 class CStreamMessageBootPushSelectResponse : public CStreamMessage 00007 { 00008 public: 00009 enum EResponseType 00010 { 00011 STREAM = 0, 00012 LAYER = 1 00013 }; 00014 00015 private: 00016 EResponseType type; 00017 __uint32 layer; 00018 __uint32 layers; 00019 00020 CAddress hosts[MAX_LAYERS]; 00021 00022 public: 00023 CStreamMessageBootPushSelectResponse( 00024 __uint32 stream, 00025 __uint32 layers, 00026 CAddress* hosts 00027 ); 00028 CStreamMessageBootPushSelectResponse( 00029 __uint32 stream, 00030 __uint32 layer, 00031 CAddress host 00032 ); 00033 virtual ~CStreamMessageBootPushSelectResponse() { } 00034 00035 inline EResponseType ResponseType() { return this->type; } 00036 inline __uint32 Layer() { return this->layer; } 00037 00038 inline CAddress Host(__uint32 layer) { assert(layer < MAX_LAYERS); return this->hosts[layer]; } 00039 00040 virtual CPacket* Copy(); 00041 };
Last updated: February 8, 2011