00001 #pragma once
00002
00003 #include "Address.h"
00004 #include "StreamBootPushEntry.h"
00005
00006 class CStreamBootPush
00007 {
00008 public:
00009 typedef map<CAddress, CStreamBootEntry> List;
00010
00011 private:
00012 CAddress root;
00013 List hosts;
00014
00015 public:
00016 CStreamBootPush(CAddress root) { this->root = root; }
00017 virtual ~CStreamBootPush() { }
00018
00019 void Register(CAddress host, CAddress source);
00020 void Deregister(CAddress host);
00021
00022 bool IsDependent(CAddress host, CAddress parent);
00023
00024 inline List* Fetch() { return &this->hosts; }
00025 };