Alex Bikfalvi
SimStream Documentation
HostServerPush.h
00001 #pragma once 00002 00003 #include "HostServer.h" 00004 #include "InfoPush.h" 00005 #include "StreamServerPushMcast.h" 00006 #include "StreamServerPushUcast.h" 00007 00008 class CHostServerPush : public CHostServer 00009 { 00010 protected: 00011 CInfoPush* info; 00012 00013 // Stream servers 00014 CStreamServerPushMcast** streamServersMcast; 00015 CStreamServerPushUcast** streamServersUcast; 00016 00017 // Delegates 00018 Delegate4<CHostServerPush, void, __uint32, CPacketIp*, CPacketUdp*, CPacket*>* 00019 delegateRecv; 00020 00021 Delegate2<CHostServerPush, void, CAddress, CPacketStream*>* 00022 delegateSendStream; 00023 Delegate2<CHostServerPush, void, CAddress, CStreamMessage*>* 00024 delegateSendMessage; 00025 00026 public: 00027 CHostServerPush( 00028 __uint32 id, 00029 CSimHandler* sim, 00030 CAddress address, 00031 CInfoPush* info, 00032 CData* data 00033 ); 00034 virtual ~CHostServerPush(); 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 };
Last updated: February 8, 2011