#pragma once #include #include #include #include #include class FakeServiceControl: public p3ServiceControl { public: FakeServiceControl(p3LinkMgr *lm) : p3ServiceControl(lm),mLink(lm) { } virtual void getPeersConnected(const uint32_t serviceId, std::set &peerSet) { (void) serviceId; std::list ids ; mLink->getOnlineList(ids) ; for(std::list::const_iterator it(ids.begin());it!=ids.end();++it) peerSet.insert(*it) ; } virtual bool checkFilter(uint32_t,const RsPeerId& id) { (void) id; return true ; } p3LinkMgr *mLink; };