Alex Bikfalvi
SimStream Documentation
HostClientPull.h
00001 #pragma once 00002 00003 #include "HostClient.h" 00004 #include "StreamClientPull.h" 00005 #include "InfoPush.h" 00006 00007 class CHostClientPull : public CHostClient 00008 { 00009 protected: 00010 // Global 00011 CInfoPull* info; 00012 00013 // Delegates 00014 Delegate4<CHostClientPull, void, __uint32, CPacketIp*, CPacketUdp*, CPacket*>* 00015 delegateRecv; 00016 Delegate0<CHostClientPull, CLink*>* 00017 delegateLink; 00018 00019 public: 00020 CHostClientPull( 00021 __uint32 id, 00022 CSimHandler* sim, 00023 CAddress address, 00024 CInfoPull* info, 00025 CData* data, 00026 __bitrate bw 00027 ); 00028 virtual ~CHostClientPull(); 00029 00030 virtual void Finalize(); 00031 00032 protected: 00033 virtual void ChannelConnectUcast(CChannel* channel); 00034 virtual void ChannelDisconnectUcast(); 00035 00036 virtual void ChannelConnectMcast(CChannel* channel); 00037 virtual void ChannelDisconnectMcast(); 00038 00039 private: 00040 void Recv(__uint32 entry, CPacketIp* ip, CPacketUdp* udp, CPacket* packet); 00041 00042 void SendStream(CAddress dst, CPacketStream* packet); 00043 void SendMessage(CAddress dst, CStreamMessage* message); 00044 00045 inline CLink* Link() { return CNode::Link(0); } 00046 };
Last updated: February 8, 2011