Alex Bikfalvi
SimStream Documentation
StreamMessage.h
00001 #pragma once 00002 00003 #include "Packet.h" 00004 00005 class CStreamMessage : public CPacket 00006 { 00007 public: 00008 enum EMessageType 00009 { 00010 // Push 00011 STREAM_MESSAGE_BOOT_PUSH_REGISTER = 0, 00012 STREAM_MESSAGE_BOOT_PUSH_DEREGISTER = 1, 00013 STREAM_MESSAGE_BOOT_PUSH_REQUEST = 2, 00014 STREAM_MESSAGE_BOOT_PUSH_RESPONSE = 3, 00015 STREAM_MESSAGE_PUSH_JOIN = 4, 00016 STREAM_MESSAGE_PUSH_LEAVE = 5, 00017 STREAM_MESSAGE_PUSH_CLOSE = 6, 00018 00019 // Push 00020 STREAM_MESSAGE_BOOT_PUSH_MULTI_REGISTER = 10, 00021 STREAM_MESSAGE_BOOT_PUSH_MULTI_DEREGISTER = 11, 00022 STREAM_MESSAGE_BOOT_PUSH_MULTI_REQUEST = 12, 00023 STREAM_MESSAGE_BOOT_PUSH_MULTI_RESPONSE = 13, 00024 STREAM_MESSAGE_PUSH_MULTI_JOIN = 14, 00025 STREAM_MESSAGE_PUSH_MULTI_LEAVE = 15, 00026 STREAM_MESSAGE_PUSH_MULTI_CLOSE = 16, 00027 00028 // Pull 00029 STREAM_MESSAGE_BOOT_PULL_REGISTER = 20, 00030 STREAM_MESSAGE_BOOT_PULL_DEREGISTER = 21, 00031 STREAM_MESSAGE_BOOT_PULL_REQUEST = 22, 00032 STREAM_MESSAGE_BOOT_PULL_RESPONSE = 23, 00033 STREAM_MESSAGE_PULL_BITMAP_REQUEST = 24, 00034 STREAM_MESSAGE_PULL_BITMAP_RESPONSE = 25, 00035 STREAM_MESSAGE_PULL_SEGMENT_REQUEST = 26, 00036 STREAM_MESSAGE_PULL_SEGMENT_RESPONSE = 27, 00037 00038 // PushSelect 00039 STREAM_MESSAGE_BOOT_PUSH_SELECT_REGISTER = 30, 00040 STREAM_MESSAGE_BOOT_PUSH_SELECT_DEREGISTER = 31, 00041 STREAM_MESSAGE_BOOT_PUSH_SELECT_REQUEST = 32, 00042 STREAM_MESSAGE_BOOT_PUSH_SELECT_RESPONSE = 33, 00043 STREAM_MESSAGE_PUSH_SELECT_JOIN = 34, 00044 STREAM_MESSAGE_PUSH_SELECT_LEAVE = 35, 00045 STREAM_MESSAGE_PUSH_SELECT_CLOSE = 36 00046 }; 00047 00048 protected: 00049 EMessageType messageType; 00050 __uint32 stream; 00051 00052 public: 00053 CStreamMessage( 00054 EMessageType messageType, 00055 __uint32 size, 00056 __uint32 stream 00057 ); 00058 virtual ~CStreamMessage() { } 00059 00060 inline EMessageType MessageType() { return this->messageType; } 00061 inline __uint32 Stream() { return this->stream; } 00062 00063 virtual EPacketType Type() { return PACKET_TYPE_MESSAGE; } 00064 };
Last updated: February 8, 2011