Alex Bikfalvi
SimStream Documentation
HostServerPushSelect.h
00001 #pragma once 00002 00003 #include "HostServer.h" 00004 #include "InfoPushSelect.h" 00005 #include "Timer.h" 00006 00007 #include "StreamServerPushSelect.h" 00008 00009 class CHostServerPushSelect : public CHostServer 00010 { 00011 protected: 00012 CInfoPushSelect* info; 00013 00014 // Stream servers 00015 CStreamServerPushSelect** streamServers; 00016 00017 // Delegates 00018 Delegate4<CHostServerPushSelect, void, __uint32, CPacketIp*, CPacketUdp*, CPacket*>* 00019 delegateRecv; 00020 00021 Delegate2<CHostServerPushSelect, void, CAddress, CPacketStream*>* 00022 delegateSendStream; 00023 Delegate2<CHostServerPushSelect, void, CAddress, CStreamMessage*>* 00024 delegateSendMessage; 00025 00026 public: 00027 CHostServerPushSelect( 00028 __uint32 id, 00029 CSimHandler* sim, 00030 CAddress address, 00031 CInfoPushSelect* info, 00032 CData* data 00033 ); 00034 virtual ~CHostServerPushSelect(); 00035 00036 virtual void Start(); 00037 virtual void Stop(); 00038 00039 virtual void Finalize(); 00040 00041 private: 00042 void Recv(__uint32, CPacketIp* ip, CPacketUdp* udp, CPacket* packet); 00043 00044 void SendStream(CAddress dst, CPacketStream* packet); 00045 void SendMessage(CAddress dst, CStreamMessage* message); 00046 00047 };
Last updated: February 8, 2011